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

Cardlayout not notifying children of being shown/hidden

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.3
    • Freshly, 8.0.3
    • Components
    • Security Level: Jimmy

      Since ZK-3225 hidden cardlayout children are now invisible in the dom, and become visible if necessary. Only the child at the selected index remains visible.
      The visibility is currently triggered directly via CSS.
      This direct visibility change has a sideffect that nested widgets are unaware of being shown/hidden.
      e.g. The gmaps component needs an indication that it is being shown to render properly.
      (maybe other components are affected as well)

      An alternative could be to use the widget API methods show()/hide() which will notify the children of a visibility change accordingly preventing this issue.

      Attached a reproducing example: cardlayout-tabbing-issue-gmaps.zul

            wenninghsu wenninghsu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m