Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Set style on Browser widget iframe
Set style on Browser widget iframe [message #1058950] Wed, 15 May 2013 22:41 Go to next message
Paul Bilnoski is currently offline Paul Bilnoski
Messages: 24
Registered: August 2010
Junior Member
I am using a Browser widget to develop a custom RAP widget, and am having trouble with the scrollbars showing up. I have noticed that the browser widget creates an iframe but sets the default "scrolling" style to "auto". Is there a way to set this property to not show scrollbars via the Browser widget API provided by RWT?
Re: Set style on Browser widget iframe [message #1059264 is a reply to message #1058950] Thu, 16 May 2013 08:33 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 386
Registered: July 2009
Senior Member
Hi.

The scrollbars of a Browser widget can be controlled entirely (and only)
by the widgets HTML/CSS content. For example, we use the following CSS
which should work in all browser:

html, body { width:100%; height:100%; overflow:hidden; }

Greetings,
Tim

Am 16.05.2013 00:41, schrieb Paul Bilnoski:
> I am using a Browser widget to develop a custom RAP widget, and am
> having trouble with the scrollbars showing up. I have noticed that the
> browser widget creates an iframe but sets the default "scrolling" style
> to "auto". Is there a way to set this property to not show scrollbars
> via the Browser widget API provided by RWT?
>

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Set style on Browser widget iframe [message #1059363 is a reply to message #1059264] Fri, 17 May 2013 16:33 Go to previous message
Paul Bilnoski is currently offline Paul Bilnoski
Messages: 24
Registered: August 2010
Junior Member
Thank you, Tim, that helped. I needed to also set overflow:hidden in the CSS for the body tag of the HTML content I was sending to the Browser widget.
--Paul
Previous Topic:Trouble deploying RAP application in Jetty in Equinox
Next Topic:Assembling RAP 1.5 application with Maven
Goto Forum:
  


Current Time: Thu Oct 23 13:06:22 GMT 2014

Powered by FUDForum. Page generated in 0.02240 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software