Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313907 - Wrong horizontal displacement InfoFlyout
Summary: Wrong horizontal displacement InfoFlyout
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 2.0.0.RC2   Edit
Assignee: Elias Volanakis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-21 09:07 EDT by Nobody - feel free to take it CLA
Modified: 2010-05-21 15:04 EDT (History)
4 users (show)

See Also:


Attachments
Horizontal displacement of InfoFlyout (137.89 KB, image/png)
2010-05-21 09:07 EDT, Nobody - feel free to take it CLA
no flags Details
Screenshot (fixed) (6.02 KB, image/png)
2010-05-21 15:04 EDT, Elias Volanakis CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody - feel free to take it CLA 2010-05-21 09:07:43 EDT
Created attachment 169497 [details]
Horizontal displacement of InfoFlyout

The InfoFlyout is placed at a wrong horizontal position, sometimes even outside the Client.
Comment 1 Elias Volanakis CLA 2010-05-21 14:24:41 EDT
Reproducible on Vista as well.
Comment 2 Elias Volanakis CLA 2010-05-21 14:34:42 EDT
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 :-)
Comment 3 Elias Volanakis CLA 2010-05-21 15:02:15 EDT
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) ?
Comment 4 Elias Volanakis CLA 2010-05-21 15:04:06 EDT
Created attachment 169547 [details]
Screenshot (fixed)