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

Failing to set slider hflex in hlayout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.0
    • 8.5.2
    • Components

      Steps to Reproduce

      1. run to the fiddle.
      http://zkfiddle.org/sample/2vsjrv3/4-bugs-for-slider-in-hlayout
      2. resize the window

      Current Result

      developer tool /console tab

      Uncaught RangeError: Maximum call stack size exceeded
          at curCSS (zk.wpd:7296)
          at Function.css (zk.wpd:7254)
          at zk.wpd:7110
          at Function.access (zk.wpd:980)
          at init.css (zk.wpd:7092)
          at zjq.sumStyles (zk.wpd:12852)
          at zjq.marginWidth (zk.wpd:12986)
          at init.setFlexSizeW_ (zk.wpd:21236)
          at init.setFlexSize_ (zk.wpd:21225)
          at init.beforeChildrenFlex_ (:1223/t8521/zkau/web/_zv2018082816/js/zul.box.wpd:385)
      

      Expected Result

      resize without an error

      Debug Info

      in hlayout,
      https://github.com/zkoss/zk/blob/884e074c3ab999798dcf38b01564ec1f4c940818/zul/src/archive/web/js/zul/box/Layout.js#L261
      would cause a wrong logical result in
      https://github.com/zkoss/zk/blob/884e074c3ab999798dcf38b01564ec1f4c940818/zul/src/archive/web/js/zul/box/Layout.js#L395

      Workaround

      currently none

            klyvechen klyvechen
            klyvechen klyvechen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day, 4 hours
                1d 4h
                Logged:
                Time Spent - Not Specified
                Not Specified