0

Error box not shown when the error field is scrolled out

asked 2011-01-03 09:09:48 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hi,

try this example in the ZK Sandbox:

<grid fixedLayout="true">
	<columns>
		<column label="Type" width="150px" />
		<column label="Content" />
	</columns>
	<rows>
		<row>
			<label value="UserName" width="150px" />
			<textbox id="tb" width="150px" constraint="no empty"/>
		</row>
		<row>
			Something 1
		</row>
		<row>
			Something 2
		</row>
		<row>
			Something 3
		</row>
		<row>
			Something 4
		</row>
		<row>
			Something 5
		</row>
		<row>
			Something 6
		</row>
		<row>
			Something 7
		</row>
		<row>
			Something 8
		</row>
		<row>
			Something 9
		</row>
		<row>
			Something 10
		</row>
		<row>
			Something 11
		</row>
		<row>
			Something 12
		</row>
		<row>
			Something 13
		</row>
		<row>
			Something 14
		</row>
		<row>
			Something 15
		</row>
		<row>
			Something 16
		</row>
		<row>
			Something 17
		</row>
		<row>
			Something 18
		</row>
		<row>
			Something 19
		</row>
		<row>
                  <button label="Save" onClick="tb.getValue();"/>
		</row>
	</rows>
</grid>

Make the browser window small to show only a few lines of the form (grid), scroll down and press "Save" button. The error box is not show even when the user scrolls back to the top of the form.

This behaviour is the same in ZK 5 in IE 8 and FF 3.6.

However, in ZK 3.6.5 (which is of my main concern), this behaviour is just for IE8. The FF3.6 scrolls the error box very nicely with the form, so as the error box stays all the time beside the textbox.

What's the problem with error box floating? May the nice ZK 3.6.5 & FF 3.6 behaviour be implemented for ZK 3.6.5 and IE8, too? (And ZK 5 as well?)

Thanks
andy

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-01-03 10:36:11 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Since you have a small sample of the failure and can document that it behaves differently in 2 versions (neither of them totally correct), you should click the Bugs button at the top of the forum and create a bug report. You can add your sample to the report so they can verify it.

link publish delete flag offensive edit

answered 2011-01-03 14:00:21 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

updated 2011-01-04 03:47:34 +0800

Hi Cary,
I have asked in the forum first, because I was not sure if this is a bug or just expected behaviour. I have though others (including folks from ZK) had to encounter this weird behaviour, too. But I have just found out that when I put the above code in the Sandbox at:

http://www.zkoss.org/zksandbox/userguide/ then it works well, but when I use

http://www.zkoss.org/zksandbox/userguide/#f2 (or any other Sandbox URL with the bookmark #xyz) then it does not work well (as I have described in my first post).

No I see the problem is a little bit hidden, so maybe that's the reason, why it has not been reported and solved yet. So I have posted a Bug ID: 3151028.

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: 2011-01-03 09:09:48 +0800

Seen: 247 times

Last updated: Jan 03 '11

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