Skip to main content

Search and Top Navigation

#3086 closed bug (fixed)

Opened July 10, 2008 06:47PM UTC

Closed July 11, 2008 07:25AM UTC

size() in dialog buggy under IE with margin values 'auto'

Reported by: doyer.guyllaume@gmail.com Owned by: scottgonzalez
Priority: blocker Milestone: 1.6b
Component: ui.dialog Version: 1.5.1
Keywords: dialog IE size margin value auto Cc:
Blocked by: Blocking:
Description

dialog is buggy with Internet Explorer 6 & 7 when container margin value are set to "auto", due to an NaN value for "lrMargin" in the size() function.

I just end up with the following temp fix, waiting for this bug to be fixed in the next realease:

tbMargin = parseInt( content.css('margin-top') != "auto" ? content.css('margin-top') : 0,10) + parseInt( content.css('margin-bottom') != "auto" ? content.css('margin-bottom') : 0,10),
lrMargin = parseInt( content.css('margin-left') != "auto" ? content.css('margin-left') : 0,10) + parseInt( content.css('margin-right') != "auto" ? content.css('margin-right') : 0,10);

instead of:

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);
Attachments (0)
Change History (3)

Changed July 10, 2008 08:47PM UTC by paul comment:1

milestone: 1.5.21.6b

Changed July 11, 2008 06:58AM UTC by scottgonzalez comment:2

Also see #3090.

Changed July 11, 2008 07:25AM UTC by scottgonzalez comment:3

resolution: → fixed
status: newclosed

Fixed in [444].