|
Re: Draw2D Label preferred size [message #656487 is a reply to message #656327] |
Fri, 25 February 2011 21:08 |
Bryan Mising name Messages: 3 Registered: February 2011 |
Junior Member |
|
|
Is your parent figure using an XYLayout layout and has children can be dragged and moved within the container?
If yes, check out the Logic Designer example. In this example, if a Circuit is resized smaller than its children, then the children are not visible until the Circuit figure is resizes or its contents are scrolled.
This is done by having the Circuit's figure contain a ScrollPane containing a FreeformViewport with a FreeformLayer. The Circuit's edit part returns the FreeformLayer as the content pane in the EditorPart's getContentPane() method.
The contents of the scrollable figure can be made visible when the figure is selected by using the ScrollableFeedbackSelectionPolicy which gives additional visual feedback (other than the scrollbars) that something else is there.
Alternatively, if you don't want to bother with the scrolling you can try to do what I did to get my containers to fit the bounds of their children: Howto move/resize parent figure when child is moved.
[Updated on: Fri, 25 February 2011 21:13] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03645 seconds