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

Slider flex sizing does not update the default 200px

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.1
    • None
    • None
    • None
    • ZK 8.6.1 S1

      Steps to Reproduce

      <zk xmlns:w="http://www.zkoss.org/2005/zk/client">
      	<hlayout vflex="1" hflex="1">
      		<slider id="s1" maxpos="4" orient="vertical" slidingtext="Test"/>
      		<slider id="s2" maxpos="4" slidingtext="Test"/>
      	</hlayout>
      	<button label="s1 vflex 1" onClick='s1.setHeight(null);s1.setVflex("1")'/>
      	<button label="s2 hflex 1" onClick='s2.setWidth(null);s2.setHflex("1")'/>
      </zk>
      

      Current Result

      1. Click the 1sy button, it does not update the 1st slider's height to vflex="1".
      2. Click the 2nd button after step 1, the 1st slider's height's updated, but the 2nd slider's width does not resize to hflex="1", yet height changed to 200px.

      Expected Result

      Clicking the first button, the 1st slider should be resize to vflex="1" properly.
      Clicking the 2nd button, the 2nd slider, the width should be resize to hflex="1", and the height shouldn't be resized to 200px.

            CharlesQiu CharlesQiu
            wenninghsu wenninghsu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Time Spent - 30 minutes Remaining Estimate - 1 hour, 30 minutes
                1h 30m
                Logged:
                Time Spent - 30 minutes Remaining Estimate - 1 hour, 30 minutes
                30m