0

Combobox in modal window moves viewport

asked 2009-06-18 14:43:33 +0800

ofeus gravatar image ofeus
39

updated 2009-06-18 14:44:09 +0800

I have an irritating error using comboboxes in modal windows.

Here is an example zul file which should show the problem:

<zk xmlns="http://www.zkoss.org/2005/zul">

	<zscript><![CDATA[
		List filler = new LinkedList();
		
		for (int x=0; x<500; x++) {
			filler.add("line" + x);
		}
	]]></zscript>
	
	<div forEach="${filler}">
		<label value="${each}"/>
	</div>
	 
	<window title="Comboboxtest" width="200px" height="200px">
	
		<attribute name="onCreate">
			self.doModal();
			self.setPosition("center");
		</attribute>
		
		<combobox width="40px" readonly="true" text="item 3">
			<comboitem label="item 1"/>
			<comboitem label="item 2"/>
			<comboitem label="item 3"/>
			<comboitem label="item 4"/>
			<comboitem label="item 5"/>
			<comboitem label="item 6"/>
		</combobox>
		
	</window>
			
</zk>



The above code fills a page with some lines so that the browser window
should be scrollable and opens a modal popup window with a single combobox
in it.

Every time I click on the button of the combobox to choose an item, the
viewport of the browser window is moved up until the combobox is placed
on the top of the browser window, like a moveTo operation.

I use ZK 3.6.1 together with hibernate and tested it with Firefox 3.0.11.

Perhaps anybody can help me with this problem.

Thank you in advance.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-06-19 08:17:04 +0800

timshiu gravatar image timshiu
51

I tried this issue before and this bug is fixed in 3.6.2 FL.

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: 2009-06-18 14:43:33 +0800

Seen: 265 times

Last updated: Jun 19 '09

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