Error when dragging pinned window

2 posts, 0 answers
  1. Chris
    Chris avatar
    2 posts
    Member since:
    Mar 2012

    Posted 26 Nov 2013 Link to this post

    I have an application where I want a window pinned, so it loads in the center of the viewport whenever it is opened.  But I also want the window to be draggable, so the user can slide it out of the way to look at the data underneath it.  This works great when the browser is scrolled all the way to the top, but there is differing behavior in different browsers when scrolled down:

    In IE10, the window opens in the middle of the screens and stays pinned when I scroll, but if I try to drag the window, it immediately moves down the same number of pixels as the browser is scrolled (if I'm scrolled down 50 pixels, the window jumps down 50 pixels lower than my mouse pointer), almost as if the math to calculate the window position when dragging isn't being done right.

    In Chrome, the window drags correctly, but when it opens up it's not centered on the screen (if scrolled down when opening).  It is positioned down, roughly the same number of pixels the browser is scrolled down.

    Has anybody else run into this issue?  Is this a configuration issue on my end or is it a bug in the Kendo Window widget?

    Kendo Version: Q3 2012  (Just downloaded today)
    Browser Version: IE10 and Chrome 31 on Windows 7
    jQuery Version: 1.8.2
  2. Alexander Popov
    Alexander Popov avatar
    1436 posts

    Posted 28 Nov 2013 Link to this post

    Hello Chris,

    Thank you for bringing this to our attention.
    I managed to reproduce this behavior and I logged it in our issue tracker. Until a fix is ready you could manually subtract the document.scrollTop value from the Window's top position, as shown in this example.
    As a small sign of our appreciation I have updated your Telerik points.

    Alexander Popov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top