[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Positioning a popup on the right-top / right-bottom / left-bottom  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

(from mail conversation)

You can call setLeft(int) and setTop(int) on a Modal/ModelessPopup instance. How can you position the popup "in the edges"?

Solution: just pass a much too high value in both of the methods - the client will automatically move the popup position into the visible area.

So, for "right top" you call:
Code:
 ModalPopup p = ...;
 p.setLeft(100000);
 p.setTop(0);
 


For other types of positioning: please check the popup demos in the demo workplace. You can e.g. open a popup relative to a certain component that you can address by its ID-value.

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team