Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Composite size before inizialisation
Composite size before inizialisation [message #1717447] Mon, 14 December 2015 01:15 Go to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 190
Registered: February 2013
Senior Member
How get size of parent composite before initialisation?

First iteration return always 0
parentMain.getSize().x

After draw that's all right and I can get size
But I want get size at once for formation size of controls

how to get around this problem?
Dmitry
Re: Composite size before inizialisation [message #1717460 is a reply to message #1717447] Mon, 14 December 2015 08:28 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
maybe you have to call layout() manually at some point in order to
recalculate the widgets bounds.
HTH,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Client error Text and V_SCROLL / H_SCROLL
Next Topic:Bundle "org.eclipse.rwt.widgets.upload" missing in RAP 2.3
Goto Forum:
  


Current Time: Tue Mar 19 04:58:04 GMT 2024

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

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

Back to the top