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

popup component as tooltip fires multiple OnOpen events (FF only)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.2, 5.0.12
    • 5.0.11, 6.0.2
    • Components
    • Security Level: Jimmy

      <zk>
      	<style>
      		.profile { width:60px; height:60px; } .p-data { padding-top:5px;
      		}
      	</style>
      	<separator />
      	<label tooltip="msg" value="Hover here to see the real label"></label>
      	<separator />
      	<separator />
      	<listbox width="500px">
      		<listhead>
      			<listheader label="Operation" width="200px" />
      			<listheader label="Contants" sort="auto" />
      		</listhead>
      		<listitem tooltip="msg">
      			<listcell label=" Mouse hover - tooltip " />
      			<listcell>
      				<hlayout>
      					<vlayout class="p-data">
      						<label value="Male" />
      						<label value="[email protected]" />
      					</vlayout>
      				</hlayout>
      			</listcell>
      		</listitem>
      		<listitem popup="msg">
      			<listcell label="Click - popup" />
      			<listcell>
      				<hlayout>
      					<vlayout class="p-data">
      						<label value="Female" />
      						<label value="[email protected]" />
      					</vlayout>
      				</hlayout>
      			</listcell>
      		</listitem>
      	</listbox>
      	<popup id="msg" width="300px">
      		<vlayout>
      			This user is online now !
      			<toolbarbutton label="Mail him/her" />
      		</vlayout>
      	</popup>
      
      	<zscript>
      msg.addEventListener("onOpen", new EventListener() {
      	public void onEvent(Event e) {
      		if (((OpenEvent) e).isOpen()) {
      			Thread.sleep(2000);
      		}
      	}
      });
      </zscript>
      </zk>
      

      ONLY tested on FF 13+, Google chrome works as expected.
      Hover over the first listitem
      Expected: Tooltip is displayed after a "Processing..." msgbox and closed after move out of listitem.
      Actual: Toltip is displayed with "Processing.." msgbox and closed and then reopened again (It is erratic sometimes tooltip only opens once). Processing msgbox is defintely displayed twice (or even more times in some cases).

            neillee neillee
            ashishd ashishd
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: