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

showNotification on component - wrong position of popup on window resize

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.0.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      When Clients.showNotification is called with not null component reference, there is chance that after resize of window, the position of notification popup is wrong. (screenshot1)

      If component is visible after resize, popup has good position. (screenshot2)
      If component is not in the viewport, popups position is wrong. (screenshot3)

      Clients.showNotification(message, Clients.NOTIFICATION_TYPE_ERROR, component, "before_end", 0);
      
      1. screenshot1.png
        118 kB
      2. screenshot2.png
        48 kB
      3. screenshot3.png
        49 kB

        Activity

        Hide
        Worsik Worsik added a comment - - edited

        Created fiddle: http://zkfiddle.org/sample/1osrrto/2-Wrong-position-of-notification-popup

        • after run, resize browser window to 1/4 of the screen
        Show
        Worsik Worsik added a comment - - edited Created fiddle: http://zkfiddle.org/sample/1osrrto/2-Wrong-position-of-notification-popup after run, resize browser window to 1/4 of the screen

          People

          • Assignee:
            Unassigned
            Reporter:
            Worsik Worsik
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: