1

Floatable movable sizable panel

asked 2014-04-18 17:42:26 +0800

FrankUsewils gravatar image FrankUsewils
13 2

I made a floatable movable resizable panel in the zul below.

<panel title="Access Denied"  movable="true" border="normal" floatable="true" sizable="true" closable="true" maximizable="true">
        <panelchildren>
            <vbox align="center" hflex="1">
                <separator spacing="10px" />
                <div height="15px">ACCESS DENIED</div>
                <div>
                    You don't have the mandatory security level to
                    view this page !
                </div>
                <hbox hflex="5">
                    <label vflex="2" />
                    <button id="logonBtn"
                        label="Logon with other credentials" href="/unsecure/login"
                        sclass="T_BU_logonBtn" hflex="4" />
                    <label vflex="1" />
                    <button id="homeBtn" label="Home"
                        href="/mainframe" sclass="T_BU_homeBtn" hflex="2" />
                    <label vflex="2" />
                </hbox>
                <separator spacing="10px" />
            </vbox>
        </panelchildren>
    </panel>

If you paste the code in ZKFiddle you will notice that once you have moved the panel, all of the events seem to be discarded : close and collapse (or any other event) don't function anymore. If you make the panel sizable, once the panel is resized after a move, the events are handled correctly again... Almost, because resizing from the top results in moving instead of resizing. Very weird...

I'm using version 7.0.1

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2014-04-24 08:04:30 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2014-04-24 08:14:59 +0800

Hi, it is a bug, please check the workaround on ZK tracker.

link publish delete flag offensive edit
0

answered 2014-04-23 08:45:32 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

It's a bug in zk 7.0.0 and 7.0.1.

Downgrade to zk 6.5.5 in order to let this work.(tested in zk fiddle)
You can also create a bug report for it.

Greetz chill.

link publish delete flag offensive edit
0

answered 2014-04-28 16:06:39 +0800

FrankUsewils gravatar image FrankUsewils
13 2

Thanks for the quick response guys !

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-04-18 17:42:26 +0800

Seen: 21 times

Last updated: Apr 28 '14

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