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

Window has jump effect if body has border applied, why?

1 Answer 34 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jordon
Top achievements
Rank 1
Jordon asked on 05 Mar 2013, 09:39 PM
I have been struggling with an issue where my Kendo window's 'jump' upward when I move, resize or min/max.  I just found out that it is due to a border I had applied to the body tag.

My question is why does this happen?

Here's a fiddle showing the effect, just go to move the window a little bit and you'll see it 'jump'. Remove the border from the body tag and all is fine.  http://jsfiddle.net/Zholen/zNLNy/428/

Edit
While the accepted answer doesn't really address my question, I will still accept it since my question may be considered irrelevant to most. I want to point out again that ASP.Net MVC 4 templates have this css set by default. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 07 Mar 2013, 03:54 PM
Hello Jordan,

Adding styles to the body tag is not a good practice and I do not recommend going this way.

You can always wrap this into another element which wont affect the Window. 

http://jsfiddle.net/zNLNy/433/

Keep in mind that adding styles to the body element could produce other visual issues too.

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