|How to resize ViewPart at runtime? [message #1111435]
||Wed, 18 September 2013 04:02
| Tilak Sharma
Registered: July 2009
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.
Powered by FUDForum
. Page generated in 0.02115 seconds