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

Grid renders its column width incorrectly with span=true

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 8.6.0
    • 8.5.1.2
    • None
    • Security Level: Jimmy
    • None

    Description

      Steps to Reproduce

      1. run the code
      2. click "append" button to add one more column

      Current Result

      grid doesn't render the new column width well

      Expected Result

      if you click "invalidate" button, grid re-render column width in an expected size:

      Debug Information

      Workaround

          zk.afterLoad('zul.grid', function () {
              var xColumn = {};
              zk.override(zul.grid.Column.prototype, xColumn, {
                  afterParentChanged_: function () {
                      xColumn.afterParentChanged_.apply(this, arguments);
                      zWatch.listen({
                          onCommandReady: this
                      });
                  },
                  onCommandReady: function () {
                      this.clearCachedSize_();
                      zUtl.fireSized(this);
                      zWatch.unlisten({
                          onCommandReady: this
                      });
                  }
              });
          });
      

      Attachments

        1. after.png
          after.png
          22 kB
        2. before.png
          before.png
          22 kB
        3. t5798-2.zul
          0.5 kB
        4. T5798Composer2.java
          1 kB

        Issue Links

          Activity

            People

              rudyhuang rudyhuang
              hawk hawk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h