Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser height
SWT Browser height [message #450477] Sun, 13 February 2005 21:18 Go to next message
Eclipse UserFriend
Originally posted by: pluh.obscurus.net

I am using SWT Browser widget to display some generated content.
Since the area where the widget is placed is popup, I would prefer
to see a whole page - without any scrollbar, horizontal nor vertical.

I know I have to set at least one dimension(let's say it' width) , to give
the browser widget a leash which they can use. But I don't know, how to
get the height value (after rendering) that I have to set to widget to see
the whole page.

thanks for any help
Re: SWT Browser height [message #450522 is a reply to message #450477] Mon, 14 February 2005 22:31 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
You could use CSS to control the font sizes/spacing between lines etc used
in the Browser. And compute the height yourself based on the number of lines
you display. Webdesigners face a similar problem when creating a popup with
javascript window.open('www.google.com', 'my popup',
'width=500,height=300'); Unfortunatly native browsers don't provide a
'height=PREFERRED' style.

Chris
Previous Topic:Is there an article on registering editor actions with a view?
Next Topic:SWT Browser Widget for CE.NET Devices
Goto Forum:
  


Current Time: Fri Apr 26 12:42:12 GMT 2024

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

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

Back to the top