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

Slider in knob mold default height is calculated from the parent component, breaks layout

    XMLWordPrintable

    Details

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

      Description

      Steps to Reproduce

      Run sample in 8.6.1 FL:
      http://zkfiddle.org/sample/fa4hde/1-zk-slider-sizing

      <zk>
         container
        <div height="600px" width="600px" style="border: black 1px solid;">
        	<slider/>
        	<div height="250px" style="border: 1px red solid;">other content</div>
        	<slider id="sli" mold="knob" />
        </div>
        <button label="set 50" onClick="sli.setCurpos(50);"/>
      </zk>
      

      Current Result

      The default height of the slider in knob mold is equal to the inner height of the parent container.

      Expected Result

      Slider in knob mold should be 200px by 200px if no size is specified

      Debug Info

      the height comes from client side:
      setHeight (zk.wpd:formatted:42588)
      _syncSvgHeight (zk.wpd:formatted:42575)
      _updateDom (zk.wpd:formatted:42662)
      onSize (zk.wpd:formatted:42753)

      Root Cause

      Workaround

        Attachments

          Activity

            People

            Assignee:
            CharlesQiu CharlesQiu
            Reporter:
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 7 hours, 30 minutes Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - 7 hours, 30 minutes Remaining Estimate - 30 minutes
                7h 30m