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

window opens off center on the height

1 Answer 85 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jason Mobley
Top achievements
Rank 1
Jason Mobley asked on 20 Aug 2013, 06:11 PM
Hi,

I've been fighting this issue for a while, and I can't seem to find what causes it (or if it's by design). When I center my window the window opens farther from the top than it does from the bottom, instead if it being exact. So if the screen is say 1000px tall, and the window is 800px. When I center it, instead of appearing 100px from the top and 100px from the bottom as you would expect, it appears to be about 150px from the top and 50px from the bottom. It's like its stealing some of the bottom. Can you give me any pointers as to how this can be overcome so I can get to center exactly in the middle?

Thanks
Jason

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Aug 2013, 08:41 AM
Hello Jason,

The problem is caused by some legacy styles applied to the Window. You can override them with:

div.k-window {
    padding-top: 0 !important;
}
 
div.k-window-titlebar {
    margin-top: 0 !important;
}

We will research whether it is safe to modify the widget styling, so that the Window is centered more precisely for future versions.

Regards,
Dimo
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
Jason Mobley
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or