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

Components disappear after redrawing in Safari

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Later Later
    • 8.5.0
    • 8.0.4
    • None
    • Security Level: Jimmy
    • None

      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.

            bobpeng bobpeng
            hawk hawk
            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 - 2 hours
                2h