Problem with TextFlow clipping text on Zoom [message #644291] |
Fri, 10 December 2010 07:26 |
Eclipse User |
|
|
|
Hi,
I'm using Eclipse 3.4 and I've added the work around mentioned in:
http://www.eclipse.org/forums/index.php?t=tree&th=154575 &#page_top
This has partially solved my issue. I create the figure in the following way:
public static Figure createFigure(String label) {
Figure wrapFigure = new Figure();
wrapFigure.setLayoutManager(new StackLayout());
FlowPage flowPage = new FlowPage();
flowPage.setHorizontalAligment(PositionConstants.CENTER);
ZoomTextFlow textFlow = new ZoomTextFlow();
textFlow.setLayoutManager(new ParagraphTextLayout(textFlow, ParagraphTextLayout.WORD_WRAP_SOFT));
textFlow.setText(label);
textFlow.setToolTip(new Label(label));
flowPage.add(textFlow);
wrapFigure.add(flowPage);
return wrapFigure;
}
I'm testing the textflow with the string: "This is a very long label to test wrapping and zoom". As soon as you start to zoom (in or out) the right hand side of the text becomes clipped or overflows out of the parent figure it sits in...
I've tried this on Ubuntu and Windows Vista and experienced the same issue. Any help would be greatly appreciated, thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03596 seconds