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

Clients.resize() doesn't work for hflex="min"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.1
    • 9.0.1
    • None
    • Security Level: Jimmy
    • None
    • ZK 9.5.1 S1

      Steps to Reproduce

      <zk>
      	<div id="div" vflex="1" hflex="1" style="background: blue">blue</div>
      	<button label="vflex to min">
      		<attribute name="onClick"><![CDATA[
      			div.setVflex("min");
      			Clients.resize(div);
      		]]></attribute>
      	</button>
      </zk>
      

      from https://www.zkoss.org/wiki/ZK_Developer%27s_Reference/UI_Patterns/Hflex_and_Vflex#Minimum_Flexibility_Doesn.27t_Change_a_Component.27s_Size_Dynamically
      1. click the button

      Current Result

      nothing changed

      Expected Result

      the div should reduce its width for hflex="min"

      Debug Information

      • 8.6.4 doesn't have this bug

      Workaround

      <custom-attributes org.zkoss.zul.css.flex="false"/>

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

              Created:
              Updated:
              Resolved: