Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-Beta
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7.0.12
-
Assignee Priority:P2
Description
Currently the ace:dialog component has a default width of 300 px. Ideally, the dialog should size the height/width based on the dialog content.
Activity
Brad Kroeger
created issue -
Brad Kroeger
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.1 [ 10241 ] | |
Assignee Priority | P2 | |
Assignee | Ken Fyten [ ken.fyten ] | yip.ng [ yip.ng ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Security | Private [ 10001 ] |
yip.ng
made changes -
Attachment | screenshot-01.png [ 13735 ] |
yip.ng
made changes -
Attachment | screenshot-02.png [ 13736 ] |
yip.ng
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 3.0.RC1 [ 10300 ] | |
Fix Version/s | 3.0 [ 10241 ] |
Ken Fyten
made changes -
Fix Version/s | 3.0 [ 10241 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
This may not be simple or even possible. The width is a number because it is used in all kinds of calculations and situations in the plugin: resizing, positioning, effects, dragging, comparing with minWidth, etc. Allowing "auto" and other units (e.g. in, em, %) may affect a lot of things.
Also, a width of "auto" or other units may not do what you expect across browsers and layouts, especially for an absolute-positioned element that can move around. E.g. in a CSS reference book there's almost half a page explaining the intricacies of "auto". And % is a % of "containing block," (not always the parent) which is again highly inconsistent across browsers and layouts.
Add to this that a jQuery dialog can potentially be detached and re-attached to anywhere else in the DOM tree, making "auto" and other units even more unpredictable.
And, if allowing "auto" and other units were not that complicated, the original author would have done it already.