Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2114

Native scrollbar remaining header column in grid/listbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.1
    • 7.0.0
    • Components
    • Security Level: Jimmy

      run the attached example...
      when the page is initially rendered with enough space the grid/listbox don't need a scrollbar

      then reduce the browser height until a scrollbar appears in the grid/listbox
      --> the column headers now contain a "column placeholder" for the space the native scrollbar will occupy OK

      increase the browser height again until the scrollbars disappear
      --> the "column placeholders" remain, causing mis-alignment of the real column headers with the cells below

      Workaround

      • set fixed height on the parent container of a grid or a listbox
        	<window border="normal" title="native" width="30%" height="350px">
        	    <custom-attributes org.zkoss.zul.nativebar="true"/>
        	    <div hflex="1" vflex="1">
        		    <grid vflex="1" hflex="1" >
        

            ChunfuChang ChunfuChang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: