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

Window title shows ellipsis

1 Answer 75 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 25 Jun 2014, 01:41 PM
Hi
  Using the example here

http://www.telerik.com/forums/kendo-window-appearing-absurdly-small

If you change the content of the window then the window seems to size itself accordingly. If you set a title like below then it only shows so much before showing an ellipsis. Is this a bug/feature or is there some property which says to size itself according to the minimum size of the content or title?

var wnd = $("#window").kendoWindow({ visible: false, title: "abcdefghijk" }).data("kendoWindow");

thanks

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Jun 2014, 12:09 PM
Hi Anthony,

The Kendo UI Window size can depend on its content, but not on its title. Theoretically, you can measure the title length and set the Window size accordingly manually. Use the scrollWidth DOM property of the span.k-window-title element and set a width to the Window wrapper (div.k-window element)

http://docs.telerik.com/kendo-ui/getting-started/widgets#accessing-kendo-ui-widget-elements

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