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

Loading combobox model from serverpush cause popup to fail to resize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.5.0.2, 9.5.1
    • Fix Version/s: 9.6.0
    • Component/s: Components
    • Security Level: Jimmy

      Description

      Steps to Reproduce

      https://zkfiddle.org/sample/33tupp1/2-async-combobox-popup#source-2

      run fiddle

      open combobox popup

      the combobox is empty at first, then is populated in a serverpush activation

      Current Result

      popup sizes based on content without any height limit, cause scrollbar on browser window

      Expected Result

      popup size is recalculated after adding new items

      Debug Information

       

      onResponse: function(ctl, opts) {
       if ((opts.rtags.onOpen || opts.rtags.onChanging) && this.isOpen())
      

      Size calculation is only triggered if the response contains ((onOpen or onChanging) + popup currently open).

      Since the serverpush response doesn't contain rtags, it never trigger this recalculation.

      Workaround

       

        Attachments

          Activity

            People

            Assignee:
            rudyhuang rudyhuang
            Reporter:
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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