This is a migrated thread and some comments may be shown as answers.

Error when dragging pinned window

1 Answer 118 Views
Window
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 26 Nov 2013, 06:46 PM
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

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 28 Nov 2013, 04:12 PM
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.

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Chris
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or