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

Components disappear after redrawing in Safari

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Later
    • Resolution: Fixed
    • Affects Version/s: 8.0.4
    • Fix Version/s: 8.5.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      steps to reproduce

      1. run the code below with the attached viewmodel
        <zk>
        	<div apply="org.zkoss.bind.BindComposer"
        		viewModel="@id('vm') @init('support.issue.ZK3578VM')">
        		<button label="toggle" onClick="@command('toggle')"></button>
        		<grid vflex="1" visible="@load(!vm.showColumn)">
        			<columns>
        				<forEach items="@load(vm.columnList)">
        					<column label="@load(each)" width="150px" />
        				</forEach>
        			</columns>
        		</grid>
        	</div>
        </zk>
        
      2. click the button 2 times

      current result

      the column disappear.

      expected result

      the column is still visible.

      debug info

      • The actions below will make the bug be non-reproducible
        • remove vflex="1" on the grid
        • don't notify change on the ListModelList. But users might use java collection object
      • it only happens in Safari 8, 10, not on Chrome, firefox

      workaround

      • don't notify change on the ListModelList.

        Attachments

          Activity

            People

            Assignee:
            bobpeng bobpeng
            Reporter:
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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