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

Groupbox ROD fails to initialize desktop on visible=false children

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 9.0.1
    • 6.5.8.1, 8.6.3
    • Components
    • Security Level: Jimmy

    Description

      Steps to Reproduce

       run code

      http://zkfiddle.org/sample/2q88k7k/3-groupbox-rod-visible

      Current Result

      open JS console, run code:

       zk.$('$bt2') > returns widget (widget exists)

      zk.$('$bt2').desktop > return null (widget has not received a desktop)

      Expected Result

       Widgets should receive a desktop when initialized by groupbox ROD

      Debug Information

       There is a 

       

      if (!w._visible && zkmax.rod(w))

       

      line in groupbox-rod.js (in zkcml) which prevents zkmax.rod(w) to trigger on visible=false widgets.

      This also prevent these components to receive a desktop during bind_ since it is not fired.

      Workaround

      disable groupbox ROD 

      <custom-attributes org.zkoss.zul.client.rod="false"/>

      https://www.zkoss.org/wiki/ZK_Developer's_Reference/Performance_Tips/Client_Render_on_Demand#Enable_or_Disable_Client_ROD

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Time Spent - 6 hours Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - 6 hours Remaining Estimate - 2 hours
                  6h