jquery - How can I change the default font-size without having .height return inaccurate values -
i trying change default font-size applying css body , html this:
body, html { font-size: 10px , font-family: arial, helvetica, verdana, sans-serif; } however in doing when trying size scrollable area when dialog opened getting scrollbars when wouldn't expect to, here jsfiddle showing problem:
http://jsfiddle.net/dwaddell/jjqmf/
just show without css works fine here jsfiddle not include font-size css , works expected:
http://jsfiddle.net/dwaddell/jjqmf/35/
so, there way set css won't effect results of height? or there bug in jquery's height function returning value inaccurate, though appears number returned should work? other suggestions or pointers appreciated.
update: dialog isn't necessary here more reduced jsfiddle: http://jsfiddle.net/dwaddell/k7kdd/
set #select_scrollcontent overflow hidden
#select_scrollcontent{ overflow: hidden; } this rid of scroll bars still allow have overflow: auto on #select_scrollcontainer if need append content or have longer list still allow scrolling. see mean uncomment append statement in following fiddle.
Comments
Post a Comment