Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » How to resize ViewPart at runtime?
How to resize ViewPart at runtime? [message #1111435] Wed, 18 September 2013 04:02
Tilak Sharma is currently offline Tilak Sharma
Messages: 48
Registered: July 2009
Member
Hi,

In the WindowBuilder editor, the ViewPart that is used for designing the UI is too small for our use-case.
We have created custom components of size 900*900 as well. But when we drag and drop any components (which are of larger size than the Viewpart) onto the ViewPart, and run the UI, we see that our components are being clipped off.

The only solution is to manually resize the Viewpart everytime we drag and drop.

Is there a programmatic way to resize the ViewPart based on the dropped object's size?
That is, either the ViewPart should automatically resize itself or I need a callback upon drag and drop so that I can calculate the required dimensions and set the Viewpart's size.

Please suggest.

Thanks,
Tilak
Previous Topic:Restrict usage of few Palette objects from dropping onto ViewPart canvas
Next Topic:WB tutorial
Goto Forum:
  


Current Time: Mon Apr 21 03:17:12 EDT 2014

Powered by FUDForum. Page generated in 0.01418 seconds