internet explorer 7 - Vertical Scrollbar Bug IE9 and IE7 -
why ie9 , ie7 display vertical scroll bar incorrectly when width of div programatically set width of viewport , overflow property programatically set auto...
in ie9 scroll bar displayed 17 pixels far left. in ie7 scroll bar displayed 17 pixels far left , there disabled scroll bar next it.
here webpage illustrate:
http://www.sweetkarma.net/iebug
more info: after asking question did little more searching , found this:
seems ie9 doesn't handle box-sizing property correctly - changing "border-box" "content-box" or leaving blank fix problem.
this fixes problem in ie9 not ie7.
the ie border-box model counts padding , margins part of element. so, can 2 things:
- explicitly set padding , margin zero
- calculate default margin , padding , subtract dynamic width
references
Comments
Post a Comment