I have a window that doesn't have its height set, so its height is dynamic based on the window content. Adding .center() doesn't center the window. How do I center the popup when the height isn't set?
I guess my question should be reworded properly. How do I center the window popup horizontally? because I dont want to set the height, I have a window that has tabs in it and inside the tabs the content heights are different. So I would like to not set the height so the window height will change dynamically based on the height of the content, so is it possible to center the window horizontally?
0
Ianko
Telerik team
answered on 07 Oct 2016, 04:55 AM
Hello Chris,
You can again use the center() method on every tab click/select. It will center the dialog window both vertically and horizontally. I assume that the width is the same for each tab container and the actual final result would be a horizontal centering.
If this is not the case and the above suggestion does not work, try reproducing this in a dojo (dojo.telerik.com) so that I can take a proper look at the problem.
Regards,
Ianko
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.