2 Answers, 1 is accepted
Hi Jeffrey,
In the attached project you will find a simple example that I made in order to test the Window, however I was not able to reproduce the described behavior - no issues appear when dragging and closing the Window regardless of the position of the main page (see the video attached).
The example covers two scenarios - there are buttons to toggle the window from the top and the bottom of the page but still no issues in dragging and closing the Window in both cases.
Could you run that project locally and see how it works for you? Then you can compare it against your project to see if any differences cause the described behavior. If this doesn't help, could you modify the project I sent to reproduce the issue, so we can investigate further and provide a solution?
Regards,
Nadezhda Tacheva
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi Don,
I have posted an answer at the root level of this thread that might be useful to you: https://www.telerik.com/forums/window-positioning-glitch-when-draggable%3Dtrue-and-main-page-is-scrolled-up#5302832
If this is not the scenario you have, I recommend opening a new thread or ticket to discuss the particular case you have so we can keep each thread concise so it can deal with one problem - from the OP.
Hi all,
This also targets Don's comment from 30 April 2021.
Clicking outside of the window will focus the element that you just clicked. Clicking again in the window will focus the window element (its main <div> element, in the common case). Browsers tend to bring into view (which include scrolling) focusable elements, and so the expected behavior is that the browser will try to scroll the page to make the entire window visible.
The catch here is that the element that actually can have a scrollbar can vary greatly from one layout to the other and the browser may have a hard time doing that scrolling.
I am attaching here a short video from our demos that shows this expected behavior as a reference point in case it helps someone else.
At this point I am not sure if this is the behavior and issue Jeffrey observed in the opener post, so I am adding this information here for anyone who might find it useful.
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
That behavior is expected, indeed, because it is the browser that does it and we can't avoid it - the window must be focusable for accessibility reasons.
The same behavior is visible in the video I attached above.
What could alleviate this would be a feature that prevents the user from dragging the window out of the viewport in the first place: https://feedback.telerik.com/blazor/1510450-prevent-the-user-from-dragging-a-window-out-of-the-viewport. If you think this would suit your needs, Vote for it and Follow it. You can also try the workaround it offers.