-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a listbox where I put a button (Toolbarbutton) into the list footer. When the user clicks the button a popup component that is connected to the button should appear inside the frame of the listbox component. Unfortunately, the popup appers outside the listbox, because the button is displayed near the right border of the listbox. How can I define the position where the popup should appear?
Ralf.
I posted an similar question:
sousa1981
1 days ago
Position Window right, bottom
I am trying make an pop up at right, bottom like notify new user online.
The problem is that the window appear with scroll bars and outside.
Any way to make it position from scratch (setLeft setTop what should have?) or may I correct a little bit the initial position right, bottom?
<window id="wnd" width="150px" title="Notify" mode="overlapped" border="normal" closable="true" position="right, bottom"> <vbox align="center"> <label value="New User Online"/> <label value="marcos.sousa"/> <button label="OK"/> </vbox> </window>
Thanks in advance,
I create the components programmatically in my Java code:
Popup searchPopup = new Popup()
searchPopup.setId (getId() + "_searchPopup");
searchPopup.setParent (hbox);
searchPopup.addEventListener(Events.ON_OPEN, new EventListener() {
public void onEvent(Event e)
{
searchText.focus();
}
});
ZkToolbarbutton searchButton = new ZkToolbarbutton();
searchButton.setImage ("/images/zk/listbox/search.gif");
searchButton.setTooltiptext (Labels.getLabel("global.listbox.tooltip.search"));
searchButton.setSclass ("tableButton");
searchButton.setParent (hbox);
searchButton.setPopup (searchPopup);
Asked: 2008-09-05 10:40:18 +0800
Seen: 320 times
Last updated: Sep 08 '08