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

Panel toggle maximize button cause line break

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.6.2.1, 9.1.0
    • Fix Version/s: None
    • 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:
            Unassigned
            Reporter:
            Leon03 Leon03
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: