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

Panel toggle maximize button cause line break

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.1
    • 8.6.2.1, 9.1.0
    • Components

      Steps to Reproduce

      https://zkfiddle.org/sample/2itfi07/1-toggle-maximize-button-cause-line-break

      click the maximize button

      Current Result

      Expected Result

      no line break and no width change before/after toggle maximize button

      Debug Information

      https://github.com/zkoss/zk/blob/master/zul/src/archive/web/js/zul/wnd/Panel.js#L354

      https://github.com/zkoss/zk/blob/master/zul/src/archive/web/js/zul/wnd/Panel.js#L645

      clientWidth cause some float deviation
      try using getBoundingClientRect()
      also check Window

      Workaround

       

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified