View Full Version : showBy() positions the panel incorrectly

29 Aug 2011, 3:51 AM
I have small size components on the screen, and when clicked, I want to show a popup that points to the clicked one; so I show the popup with showBy(), and give the clicked component as a parameter.
If the clicked component is (horizontally) in the center area of the screen, all works great, as the popup panel is center-aligned with the clicked component, and the anchor is pointing exactly where it has to.
But if the component is in the left third of the screen, the popup's left side gets aligned to the left side of the component, and as the component is quite small, the popup's anchor is not pointing to it, but only somewhere near.
Is there a way, I can force the popup to center-align with the target component even if the component is close to the margin of the screen?


29 Aug 2011, 11:26 AM
Please post a test case.