-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hi, can somebody help me with the problem of open a popup on a specific location?
I have a toolbarbutton. When it is clicked, a popup will open.
So I tried to use getTop() and getLeft() to get x and y for the toolbarbutton. Thus I could open the popup at the location I want by adding some offset pixels.
However, the getTop() and getLeft() methods both returns null. I do not understand it. Is it supposed to work?
Is there anyway I can use to open a popup on a specific location I want? I know I could use popup.open(x,y). However this method does not take percentage as parameter. I have to give it pixel value. In this way, when browser gets resized, the the popup position will screwed.
Can somebody help? Thank You!
2 | No.2 Revision |
Hi, can somebody help me with the problem of open a popup on a specific location?position?
I have a toolbarbutton. When it is clicked, a popup will open.
So I tried to use getTop() and getLeft() to get x and y for the toolbarbutton. Thus I could open the popup at the location I want by adding some offset pixels.
However, the getTop() and getLeft() methods both returns null. I do not understand it. Is it supposed to work?
Is there anyway I can use to open a popup on a specific location I want? I know I could use popup.open(x,y). However this method does not take percentage as parameter. I have to give it pixel value. In this way, when browser gets resized, the the popup position will screwed.
Can somebody help? Thank You!