javascript - Internet explorer browser effective area -
given complex js application produced gwt need use complete browser area without let scrollbar compare not disabling them because there's couple of exception rule, need calculate client area , since tool selected better directly in gwt supported pure js solution acceptable.
as usual browsers (chrome, safari, ff) except ie11 works fine standard solution of
rootpanel.setpixelsize(window.getclientwidth()-1, window.getclientheight()-1);
but when it's used in ie11 on screen 1440x900 value of getclientheight 1440x845 (seems ok) after rendering using space scrollbars compare wasting space, 10pixels..
rootpanel.setpixelsize(window.getclientwidth()-1, window.getclientheight()-10);
seems solve..where gone 10 pixel comparing result other browsers? think contents not relevant since size set on body , first div
<html> <head>... <body style="width:1439;height:xxx;"> <iframe out of visibility (position absolute , visible false <table style="width:1439;height;xxx">
and on
any guess 10pixel can lost?
edit: forgetting important detail: happens when browser maximised, if browser n't seems working expected!!!
edit: looks close if not same of
$(window).height() issues in ie , ff
change origin of js code comes gwt @ last stage should same, still not solution
solved: when maximized actual size available late...the resize must take size in deferred moment, module load implemented in gwt isn't right time browser in specific state..
Comments
Post a Comment