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

Flex with minimum and maximum size

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 8.5.0
    • Fix Version/s: None
    • Component/s: General
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Is it possible to say ZK to consider minimum and maximum sizes (css min-height max-height min-width max-width) of components at the same time with hflex="1" and vflex="1"

        Activity

        Hide
        pe4enko pe4enko added a comment -

        For example i have parent with size 300px, and two children with equal hflex.
        ZK compute size of this children = 150px, and then browser set min-width for first component = 200px
        The sum of sizes of children will 350px. I want that ZK comute size for first children 250px and for second children as 50 px

        <div id ="parent" style="width: 300px">
            <div id="child1" style="min-width: 200px" hflex="1"/>
            <div id="child2" hflex="1"/>
        </div>
        
        Show
        pe4enko pe4enko added a comment - For example i have parent with size 300px, and two children with equal hflex. ZK compute size of this children = 150px, and then browser set min-width for first component = 200px The sum of sizes of children will 350px. I want that ZK comute size for first children 250px and for second children as 50 px <div id = "parent" style= "width: 300px" > <div id= "child1" style= "min-width: 200px" hflex= "1" /> <div id= "child2" hflex= "1" /> </div>

          People

          • Assignee:
            Unassigned
            Reporter:
            pe4enko pe4enko
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: