Search and Top Navigation
#4795 closed bug (duplicate)
Opened August 22, 2009 06:23PM UTC
Closed August 26, 2009 04:16PM UTC
Last modified October 11, 2012 09:15PM UTC
width & height functions caluculate incorrect values
Reported by: | psyafter | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.dialog | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
these functions calculates incorrect values in not ie block:
width
handle "good" browsers
} else {
return $(document).width() + 'px';
}
height
handle "good" browsers
} else {
return $(document).height() + 'px';
}
its cause scrollbars on page
I tried replace it woth following code and its wotk perfect now:
width
handle "good" browsers
} else {
return $('body').outerWidth(true) + 'px';
}
height
handle "good" browsers
} else {
return $('body').outerHeight() + 'px';
}
bug found on IE8 (cause scrollbar) & in Chrome (enlarge width & height)