Community
Participate
Working Groups
Created attachment 169497 [details] Horizontal displacement of InfoFlyout The InfoFlyout is placed at a wrong horizontal position, sometimes even outside the Client.
Reproducible on Vista as well.
Looking at the code in #updateLocation(). I suspect the calculation is wrong. Will expirement later today. Also, I recommend avoiding this construct completely: PlatformUI.getWorkbench().getDisplay().getShells()[0].getBounds(); ^^^^^^^^^ We don't have any guarantee what shell that is. parent.getShell() or control.getShell() always gives the shell where the parent/control is hosted. Much safer :-)
Yep, the code below was causing the problem (returning the wrong shell). I've also reduced the margin from the left shell edge slighlty moving it a bit to the left. // INFO_FLYOUT_RIGHT_INDENT = 12 // from 21 @Heiko: can you confirm it now looks right (see next screenshot) ?
Created attachment 169547 [details] Screenshot (fixed)