-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
since ZK 7.0.0 scrollbars seems to be shown only when the mouse is over a listbox. This is annoying because it overlaps on the right and the user doesn't see that he can scroll.
For me this is a debasement.
Also the style from the OS is not considered. In ZK 6.x.x they look like Win 8 Scrollbars, now they look like XP :-)
Can anybody help me?
Thanks, Robert
add this to your zk.xml :
<library-property>
<name>org.zkoss.zul.nativebar</name>
<value>true</value>
</library-property>
Here an example of implementation for one page (when you don't set it in web.xml):
http://zkfiddle.org/sample/2ovduhc/11-ZK-listbox-size-scroll
<style>
div.z-listbox{
overflow:scroll;
}
</style>
see working example here : http://zkfiddle.org/sample/2ovduhc/17-ZK-listbox-size-scroll
This will create the scrollbar over the whole listbox BUT your data will have its own scrollbar to. It shall not be the thing you need. I did try to remove the scrollbar over the elements by growing its size (in firebug it works well when I change the values on the fly) but the size is rendered by the listbox himself so we can't adjust it. Your header is also included to the scrollbar cause its one div (listbox) that contains 3 divs (header, body and footer) so you can't select 2 of them.
The solution to your problem is putting the footer as last listcell.
Hope this helps you.
Greetz chill.
Asked: 2014-01-13 13:50:38 +0800
Seen: 49 times
Last updated: Jan 14 '14