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

Window.Center() does nothing

3 Answers 14 Views
Window
This is a migrated thread and some comments may be shown as answers.
Summit Insights
Top achievements
Rank 1
Summit Insights asked on 20 Jul 2015, 06:59 AM

Hi, I tried to get a modal window to center and its not having any effect.

I can move the window around with the position attributes, and by putting the window div in different places in the DOM..

The center() function does not throw any exceptions.

The problem exists in both Chrome and IE11.

My page does not contain any Iframes. Any advice?

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Jul 2015, 09:06 AM
Hello Ron,

Please compare your implementation with this example and let me know if you need more information.

http://dojo.telerik.com/ijEzU

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Summit Insights
Top achievements
Rank 1
answered on 20 Jul 2015, 11:36 PM

Thanks Dimo,

 I have stripped my page down to the bare minimum until it was pretty much the same as yours and the problem still exists. The only difference on my page is I am using ASP.NET MVC js libraries for example..

<script src="/scripts/jquery-2.1.1.js"></script>    
<script src="/scripts/kendo/2015.1.429/kendo.all.min.js"></script>
<script src="/scripts/kendo/2015.1.429/kendo.aspnetmvc.min.js"></script>
<link href="/content/kendo/2015.1.429/kendo.common-bootstrap.min.css" rel="stylesheet"/>

0
Summit Insights
Top achievements
Rank 1
answered on 21 Jul 2015, 12:19 AM

Turns out my local JQuery-2.1.1.min.js was not the same as the CDN jquery-2.1.1.min.js..

Not sure how that happened, its all working now.

Thanks for your help.

Tags
Window
Asked by
Summit Insights
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Summit Insights
Top achievements
Rank 1
Share this question
or