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

Tooltip causing error, when positioning, when component is replaced at the same time

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.3
    • Fix Version/s: 6.5.4
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      Reproducing sample:

       
      <zk>
      	<popup id="help" onOpen='help.appendChild(new Label("dynamic help text"));' />
      	<div id="container">
      		<button tooltip="help, after_start" label="click to replace" 
      			onClick='container.getChildren().clear(); container.appendChild(new Label("replaced button"));' >
      		</button>
      	</div>
      </zk>
      

      The button has a tooltip, with positioning after_start.
      Clicking the button will replace the content of its surrounding container (usecase e.g. like clicking a button in a listbox -> switches to a details view)

      When hovering the button, the tooltip with dynamic content will open after a short delay and after a server roundtrip - OK.
      when clicking the button at the "wrong time" (while the tooltip is loading), a client error is caused (reproduced in chrome and IE so far)

      (I could not reproduce without "after_start", I think the positioning is important, because the mouse event will be received by the tooltip instead of the button, if no specific position is used).

      Uncaught TypeError: Cannot read property 'style' of undefined zk.wpd:10978
      zjq.dimension zk.wpd:10978
      zul.wgt.Popup.zk.$extends._posInfo zk.wpd:23538
      zul.wgt.Popup.zk.$extends.open zk.wpd:23459
      zk.override.open zk.wpd:25225
      _tt_open_ zk.wpd:20297
      (anonymous function)
      

      It might take several attempts to reproduce, see the following screencast http://screencast.com/t/eeII2ltg3

        Activity

        Hide
        vincentjian vincentjian added a comment -

        Fixed since 2013/9/16.

        Show
        vincentjian vincentjian added a comment - Fixed since 2013/9/16.
        Hide
        cor3000 cor3000 added a comment -

        the issue can now be reproduced when releasing the mouse button in the moment when the tooltip starts loading.

        the stack trace is different than before but error happens on the same line

        Uncaught TypeError: Cannot read property 'style' of undefined zk.wpd:10978
        zjq.dimension zk.wpd:10978
        zul.wgt.Popup.zk.$extends._posInfo zk.wpd:23545
        zul.wgt.Popup.zk.$extends.position zk.wpd:23530
        zul.wgt.Popup.zk.$extends.onResponse zk.wpd:23562
        _invoke zk.wpd:11758
        zk.$extends.fire zk.wpd:11741
        (anonymous function)
        
        Show
        cor3000 cor3000 added a comment - the issue can now be reproduced when releasing the mouse button in the moment when the tooltip starts loading. the stack trace is different than before but error happens on the same line Uncaught TypeError: Cannot read property 'style' of undefined zk.wpd:10978 zjq.dimension zk.wpd:10978 zul.wgt.Popup.zk.$ extends ._posInfo zk.wpd:23545 zul.wgt.Popup.zk.$ extends .position zk.wpd:23530 zul.wgt.Popup.zk.$ extends .onResponse zk.wpd:23562 _invoke zk.wpd:11758 zk.$ extends .fire zk.wpd:11741 (anonymous function)
        Hide
        vincentjian vincentjian added a comment - - edited

        Fix reopened issue since 2013/9/17.

        Show
        vincentjian vincentjian added a comment - - edited Fix reopened issue since 2013/9/17.

          People

          • Assignee:
            RaymondChao RaymondChao
            Reporter:
            cor3000 cor3000
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: