Revision history [back]

click to hide/show revision 1
initial version

asked 2013-03-28 21:24:24 +0800

sunnyheinz gravatar image sunnyheinz

Grid with frozen column shows unnecessary scrollbar

I implemented a grid with a frozen column with ZK 6.5.1.1. A horizontal scrollbar is shown even if the window is big enough to show all columns. The scroll area width seems to be almost twice of the grid width. Below a demo zul file:

<?page title="Demo"?>
<window title="Hello World!!" border="normal" width="100%" height="100%">
    <grid fixedLayout="false">
        <frozen columns="1"/>
        <columns>
             <column>Frozen Column</column>
             <column>Column 1</column>
             <column>Column 2</column>
        </columns>
        <rows>
             <row>
                 <label value="A" />
                 <label value="B" />
                 <label value="C" />
             </row>
        </rows>
    </grid>
</window>

How can I adjust the scroll area to the size of the grid?

Without freezing a column everything works as expected.

Grid with frozen column shows unnecessary scrollbar

I implemented a grid with a frozen column with ZK 6.5.1.1. A horizontal scrollbar is shown even if the window is big enough to show all columns. The scroll area width seems to be almost twice of the grid width. Below a demo zul file:

<?page title="Demo"?>
<window title="Hello World!!" border="normal" width="100%" height="100%">
    <grid fixedLayout="false">
        <frozen columns="1"/>
        <columns>
             <column>Frozen Column</column>
             <column>Column 1</column>
             <column>Column 2</column>
        </columns>
        <rows>
             <row>
                 <label value="A" />
                 <label value="B" />
                 <label value="C" />
             </row>
        </rows>
    </grid>
</window>

How can I adjust the scroll area to the size of the grid?

Without freezing a column everything works as expected.

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