Skip to main content


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 BilnoskiFriend
Messages: 28
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 BuschtoensFriend
Messages: 396
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 BilnoskiFriend
Messages: 28
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:RAP/EMF Integration
Next Topic:Hardware recommendations for RAP server
Goto Forum:
  


Current Time: Mon Sep 23 03:10:13 GMT 2024

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

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

Back to the top