| Summary: | ToolTip incorrectly rendered upon second activation | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Micha Riser <eclipse> |
| Component: | GEF-Legacy Draw2d | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | 3.2 | ||
| Target Milestone: | 3.4.1 (Ganymede SR1) | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Works for me now in gef version 3.4.1.v20080806 Closing as fixed in 3.4.1 due to last comment. |
Upon first activation the tool tip figure is shown correctly with a one-pixel size border around it. But upon second (and following) activation, the border does not go around but it looks like a shadow on the bottom and right side. *********** Text ** * Text * vs. ********* *********** ********* Following code demonstrates the behaviour. // ----- import org.eclipse.draw2d.*; import org.eclipse.draw2d.Label; import org.eclipse.swt.widgets.*; public class ToolTipBug { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); FigureCanvas fc = new FigureCanvas(shell); Label label = new Label("Hello, World"); label.setToolTip(new Label("Tool Tip")); fc.setContents(label); fc.pack(); shell.open(); while(!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } } // ----- Does not seem to happen under windows.