#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 14 years ago by
Cc: | jamcunni@… added |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please use our dialog customization system for changing dialog validation rule.
comment:4 Changed 14 years ago by
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.
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)