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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.0
    • 8.5.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.6.0 S1

      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>
      

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

              Created:
              Updated:
              Resolved:

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