Opened 15 years ago
Closed 15 years ago
#3086 closed bug (fixed)
size() in dialog buggy under IE with margin values 'auto'
Reported by: | Owned by: | Scott González | |
---|---|---|---|
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);
Change History (3)
comment:1 Changed 15 years ago by
Milestone: | 1.5.2 → 1.6b |
---|
comment:2 Changed 15 years ago by
Note: See
TracTickets for help on using
tickets.
Also see #3090.