too much space using frozen on the listbox

asked 2017-12-22 18:18:18 +0800

davidwiston gravatar image davidwiston
103 2

updated 2017-12-25 09:06:42 +0800

cor3000 gravatar image cor3000
3808 1 7
ZK Team

I'm having trouble using frozen on my listbox. too much space. how to limit itimage description

<listbox id="listbox" height="300px"  sizedByContent="true" 
         emptyMessage="No items match your search" 
         tooltiptext="Double Click to View Detail" >
    <frozen columns="3"/>
    <listhead sizable="true">
            <listheader label="Id" visible="false"  />
            <listheader label="Item Id" visible="false"  />
            <listheader label="Item Code" width="70px" visible="true"   />
            <listheader label="Item Description" width="300px" visible="true"  />
            <listheader label="Created Date" width="150px" visible="true" />
            <listheader label="Created By" width="150px" visible="true" />
            <listheader label="Terminated Date" width="150px" visible="true" />
            <listheader label="Terminated By" width="150px" visible="true" />
            <listheader label="UOM" visible="true"  />
            <listheader label="Composition" visible="true"  />
            <listheader label="Default" visible="true" />
     <frozen columns="3"/>
     <template name="model">

delete flag offensive retag edit


I tried your example here http://zkfiddle.org/sample/2pk162l/1-frozen-listbox using 8.5.0, 8.0.5, 8.0.3, 7.0.5. I didn't see any spacing problem. Can you please state your ZK version and add what's missing to show your problem?

cor3000 ( 2017-12-25 09:48:06 +0800 )edit

a screenshot would help (uploading permission granted)

hawk ( 2018-01-02 09:42:59 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-01-02 12:45:37 +0800

cor3000 gravatar image cor3000
3808 1 7
ZK Team

Thanks for the image... it shows the correct and intended behavior of the frozen component.

On the lower left the non-scrollable columns don't have a scrollbar so there's nothing to display.

At the top right you see the space becoming available when scrolling the right. When there are no more columns there's nothing to display either. What would you like to see there instead?

When using ZK 8.5 EE, there is an alternative smooth frozen implementation that behaves differently as you can check out in our demo.

link publish delete flag offensive edit


Thanks for explaining it, it means it's just a zk version.

davidwiston ( 2018-01-02 15:02:45 +0800 )edit

not really, ZK 8.5 EE contains both frozen mechanisms (defaulting to the new one). ZK 8.5 CE will look as you describe.

cor3000 ( 2018-01-02 15:23:24 +0800 )edit

answered 2018-01-02 11:28:52 +0800

davidwiston gravatar image davidwiston
103 2

image description

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

1 follower



Asked: 2017-12-22 18:18:18 +0800

Seen: 13 times

Last updated: Jan 02