0

Drag window cause problems in Firefox.

asked 2010-01-06 21:54:33 +0800

tlandn gravatar image tlandn
15 1

updated 2010-01-06 21:55:45 +0800

Hello everyone.

I have a problem with Modal Dialog window in Firefox. Maybe it's a bug.

Here's the step to reproduce it:

First, go to http://www.zkoss.org/zkdemo/userguide/#l7

After click "Hello.doModal" button, a modal dialog appears. See picture

http://www.loadmypicture.com/getimage.cgi?id=201001071040596065.png&full=1

Now, I drag modal dialog towards the address bar of Firefox. See picture

http://www.loadmypicture.com/getimage.cgi?id=201001071048264593.png&full=1

The title of modal dialog is hided. And I have no way to drag it back.

It doesn't happen in IE (I use IE8). Only happens in FireFox.

And it seams to happen to all window that can dragable.

I am waiting for your help. Thanks very much.

Best regards.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-01-07 19:02:37 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Yes, it is a bug
you can post to here
we will track it

link publish delete flag offensive edit

answered 2010-01-08 04:52:42 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

updated 2010-01-08 04:53:21 +0800

This is a feature
because user may be want the window that can dragged out the browser
we provide a customization such as override the javascript

<zk>
<script defer="true"><![CDATA[
zk.Draggable.prototype.snap_ = function (p) {
p[1] = p[1] < 0 ? 0: p[1];
return p
}
]]></script>
Please check the doModal windows will not dragged out the browser top
<window title="Modal Dialog" border="normal">
<button label="Hello.doModal">
<attribute name="onClick">{
final Window win = (Window) Executions.createComponents(
"/userguide/layout/hello-template.zul", null, null);
win.setMaximizable(true);
win.doModal();
}</attribute>
</button>
</window>
</zk>

you can refer to here

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: 2010-01-06 21:54:33 +0800

Seen: 406 times

Last updated: Jan 08 '10

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