the bugtracker seems to be out of order, so i'll post this bug over
here.

the ui-dialog-content div becomes to wide for the enclosing container.
this is caused by misreading the margin and forgetting about the
padding of .ui-dialog-content when resizing the dialog.

in version 1.5.2 the size functions looks like this:

size: function() {
        ...
        tbMargin = parseInt(content.css('margin-top'),10) +
parseInt(content.css('margin-bottom'),10),
        lrMargin = parseInt(content.css('margin-left'),10) +
parseInt(content.css('margin-right'),10);
        ...
},

while it should be more along the lines of:

size: function() {
        ...
        tbMargin = parseInt(content.css('paddingTop'),10) +
parseInt(content.css('paddingBottom'),10) +
parseInt(content.css('marginTop'),10) +
parseInt(content.css('marginBottom'),10),
        lrMargin = parseInt(content.css('paddingLeft'),10) +
parseInt(content.css('paddingRight'),10) +
parseInt(content.css('marginLeft'),10) +
parseInt(content.css('marginRight'),10);
        ...
},

this works in firefox 3, ie7 and opera 9.5. however google chrome does
seem to have a problem with marginTop, marginBottom, etc..

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to