Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#6488 closed Bug (invalid)

Image dialog validation should not allow a value of zero be entered numeric fields

Reported by: Joe Kavanagh Owned by:
Priority: Normal Milestone:
Component: General Version: 3.5
Keywords: IBM Cc: Damian, jamcunni@…

Description

The Image dialog allows zero to be entered for image width and height. When zero is entered the image is not visible and it is difficult to select to edit the image's properties.

The Image dialog also allows zero to be entered for Horizontal Space, Vertical Space and Border. A value of zero does not cause a visual effect, but an inline style is applied. The inline style should not be applied if it has no effect. Either validation should not allow a value of zero, or zero can be allowed but it results in no inline style being applied.

Change History (4)

comment:1 Changed 13 years ago by James

Cc: jamcunni@… added

comment:2 Changed 13 years ago by Alfonso Martínez de Lizarrondo

It can be argued if zero width and height are correct or not, but for sure they are valid values for any other field and should set the inline style or attribute.

The site's css might specify a default value for those attributes, and as long as those fields are available in the dialog the user should be able to use them to override the defaults (for me it's much better to remove all those fields and put only a class selector)

comment:3 Changed 13 years ago by Garry Yao

Resolution: invalid
Status: newclosed

Please use our dialog customization system for changing dialog validation rule.

comment:4 Changed 13 years ago by Joe Kavanagh

I agree with alfonsoml regarding being able to override default styles.

Interesting to note that Microsoft Word does not allow a value of zero for image width and height, which makes sense to me.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy