简体   繁体   中英

Kendo Window jumps on drag and resize

I have a page that loads a KendoUI Window, and everything really seems to work fine for what I am currently doing.

But, one thing I have noticed is that when I grab the widget to resize or drag it, it jumps position about 20px, which is messing up some of the placement constraints I am trying to enforce.

Does anyone else experience this 'jump'? and if so is there someone I can prevent it?

在此处输入图片说明

So above is a 2 state image, and all I did here was grab the header to drag, moved a pixel or two to start the drag, and then it jumped another 'x' pixels.

I have found the answer! Turns out kendoWindow does not approve of the body tag having a border applied, which is a default in basically any of the MVC 4 project templates.

Removing the 'border-top: solid 10px #000' from Site.css fixes the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM