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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.0.1
    • Fix Version/s: 9.5.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 9.5.1 S1

      Description

      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"/>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: