Revision history [back]

click to hide/show revision 1
initial version

asked 2013-02-05 12:50:27 +0800

thomasp667 gravatar image thomasp667

Layout Bug when resizing Panel!?

Hey!

I tried the simple layout example below

<zk> <borderlayout> <north> <menubar> <menu label="File"> <menupopup> <menuitem label="New"/> <menuseparator/> <menuitem label="Open"/> </menupopup> </menu> <menuitem label="About"/> </menubar> </north>

    <center>
        <borderlayout>
            <west width="100px" splittable="true"  collapsible="true">
                <tree width="100%">
                    <treecols >
                        <treecol label="Just a Tree" />
                    </treecols>
                    <treechildren>
                        <treeitem>
                            <treerow>
                                <treecell label="" />
                            </treerow>
                        </treeitem>
                    </treechildren>
                </tree>
            </west>
            <center autoscroll="true">

                <panel sizable="true" height="100px" width="200px"
                    border="normal" title="Panel1" floatable="true" movable="true"
                    closable="true" maximizable="true" framable="true" minimizable="true ">
                    <panelchildren>PanelContent1</panelchildren>
                </panel>

            </center>
        </borderlayout>

    </center>
    <south></south>
</borderlayout>

</zk> Now, everytime I resize the Panel, the Panel moves a little bit to the bottom right of the page, according to the width of the west-region and the height of the north-region of the borderlayout. This might be a bug.

Layout Bug when resizing Panel!?

Hey!

I tried the simple layout example below

 <?page title="new page title" contentType="text/html;charset=UTF-8"?>
     <zk>
     <borderlayout>
     <north>
         <menubar>
             <menu label="File">
                 <menupopup>
                     <menuitem label="New"/>
                        <menuseparator/>
    label="New" />
                    <menuseparator />
                    <menuitem label="Open"/>
    label="Open" />
                </menupopup>
             </menu>
             <menuitem label="About"/>
    label="About" />
        </menubar>
        </north>

</north>

    <center>
        <borderlayout>
            <west width="100px" splittable="true"  collapsible="true">
                <tree width="100%">
                    <treecols >
                        <treecol label="Just a Tree" />
                    </treecols>
                    <treechildren>
                        <treeitem>
                            <treerow>
                                <treecell label="" />
                            </treerow>
                        </treeitem>
                    </treechildren>
                </tree>
            </west>
            <center autoscroll="true">

                <panel sizable="true" height="100px" width="200px"
                    border="normal" title="Panel1" floatable="true" movable="true"
                    closable="true" maximizable="true" framable="true" minimizable="true ">
                    <panelchildren>PanelContent1</panelchildren>
                </panel>

            </center>
        </borderlayout>

    </center>
    <south></south>
</borderlayout>
 </zk>

</zk> Now, everytime I resize the Panel, the Panel moves a little bit to the bottom right of the page, according to the width of the west-region and the height of the north-region of the borderlayout. This might be a bug.

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