java - SWT Browser - disabled Vertical Scroll how do i hide it? -


i have swt shell, swt browser in it. on osx works fine, when on windows insists on putting disabled vertical scrollbar in shell or browser (i don't know which!). there way of forcing widgets hide scroll bars?

when call getverticalscrollbar() or horizontal equivilant on either shell or browser null. there way of removing scrollbars completley?

here code, nothing special:


    this.shell = new shell(this.display, swt.close | swt.min | swt.max);      shell.addlistener(swt.close, new listener(){         public void handleevent(event event) {             event.doit = false;             location = shell.getlocation();             shell.setvisible(false);         }     });     shell.setsize(popupsize);     shell.setminimumsize(popupsize);     if(this.location == null){         shell.setlocation(x, y);         }else{         shell.setlocation(this.location);     }       shell.setlayout(new filllayout());     this.browser = new browser(shell, swt.none | swt.smooth); 

any ideas?

cheers

andy

i had similar problem swt browser objects. ended using "overflow:hidden" css style in html page, tells browser suppress scrollbars , clip webpage @ edge of browser window if page big fit.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -