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

Listbox items not resized after ROD triggers zk.Widget.prototype.replaceCavedChildren_

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.2
    • Fix Version/s: 8.6.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.0 S1

      Description

      Steps to Reproduce

      run fiddle
      http://zkfiddle.org/sample/3usnnrt/3-Listbox-ROD-render-onSize-missing

      Click on the +1 button to add lines

      Current Result

      When adding a line, the content is marked for rerendering due to ROD.
      During rerender, the onSize event doesn't trigger, so the components located inside the listbox follow their "default" size.

      Expected Result

      Components should trigger onSize to match their current expected size

      Debug Info

      Root Cause

      Workaround

       <script><![CDATA[
      	zk.afterLoad('zul.sel', function() {
      		var xListbox = {};
      		zk.override(zul.sel.Listbox.prototype, xListbox ,{
      			onChildReplaced_ : function() {
      				var result = xListbox.onChildReplaced_.apply(this, arguments);
      				zUtl.fireSized(this);
      				return result;
      			}
      		});//zk.override
      	});//zk.afterLoad
      	]]></script>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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