Reputation: 125
I am opening a window with javascript using
var otherWin = $("#wndOther").data("kendoWindow");
otherWin.center().open();
I later close the window with javascript in a different function using
var otherWin = $("#wndOther").data("kendoWindow");
otherWin.close();
The problem that I am having is after the first time I open and close this window, when I go to open it again using the same method, it appears off centered to the right.
I would like for the window to be perfectly center every time. Does anyone know what might be going on?
Upvotes: 0
Views: 557
Reputation: 125
After doing some research, I was able to conclude that this is a bug in jQuery version 3.1.1 or later. If you don't want to upgrade your version of jQuery, you can turn off the animations for the window and it should work properly.
Example -
@(Html.Kendo().Window().Name("wndOther").Title("")
.Animation(false) @* SET ANIMATION TO FALSE *@
.Content("<div id='otherInfo'></div>").Visible(false).Width(500))
Upvotes: 1