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

Borderlayout doesn't appear a vertical scrollbar when its content overflows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.7, 8.0.1
    • 7.0.6.1
    • None
    • Security Level: Jimmy
    • None
    • ZK 7.0.7

      background

      Users wants a floating scrollbar style like facebook, so they need a customizable, non-native scrollbar.

      steps to reproduce

      1. run http://zkfiddle.org/sample/1vrjjhd/2-borderlayout-scrollbar
        <borderlayout vflex="1" class="mainCenterArea">
          <custom-attributes org.zkoss.zul.nativebar="false"/>
        	<west size="350px" border="0" class="menuGroupboxContainer" autoscroll="true">
        		<vbox id="menuContainer" hflex="1"  spacing="0">
        			<groupbox class="menuGroupbox" open="false" hflex="1">
        				<caption label="Layer1 A" />
        				<vbox>
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        					<label value="Layer2 A" />
        				</vbox>
        			</groupbox>
        			<groupbox class="menuGroupbox" open="false" hflex="1">
        				<caption label="Layer1 B" />
        				<vbox>
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        					<label value="Layer2 B" />
        				</vbox>
        			</groupbox>
        		</vbox>
        	</west>
        </borderlayout>
        
      2. shrink height less than 500px
      3. open 2 groupboxes

      result

      no vertical scrollbar

      expected result

      vertical scrollbar appears.

      h2 .debug info

      • it doesn't happen when <custom-attributes org.zkoss.zul.nativebar="true"/>

            wenninghsu wenninghsu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 30 minutes
                5h 30m