0

Position of Popup

asked 2008-09-05 10:40:18 +0800

enixser gravatar image enixser
185 3

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.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2008-09-05 11:01:27 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

It is better to provide some sample codes so we can test it easily.

link publish delete flag offensive edit

answered 2008-09-05 16:14:53 +0800

sousa1981 gravatar image sousa1981
573 4

updated 2008-09-05 16:16:04 +0800

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,

link publish delete flag offensive edit

answered 2008-09-08 11:57:04 +0800

enixser gravatar image enixser
185 3

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);

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-09-05 10:40:18 +0800

Seen: 320 times

Last updated: Sep 08 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More