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

Panel toggle maximize button cause line break

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.6.2.1, 9.1.0
    • Fix Version/s: 9.5.1
    • Component/s: Components
    • Labels:

      Description

      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

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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