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

[Solved] Window and Automatic Height

1 Answer 42 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Werner
Top achievements
Rank 1
Werner asked on 12 Aug 2011, 05:27 AM
Hello,

I'd like to force any window I create to have an automatic height unless I explicitly specify a height. How do I do this? 

The reason is that I have several forms shown in windows which use controls (like the upload control) that effect the height of the form. There are other discussions which recommends to change the height of the ".t-window-content" to "auto". It works great, except that it violates DRY as I have to register to each event a control may raise after doing something that effects the height.  The reason for this is that I cannot control which controls users will change first.

I tried to change the CSS style of ".t-window-content" in the OnLoad and OnOpen client events but the height remains fixed.

Thanks,
Werner

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Aug 2011, 06:53 AM
Hello Werner,

 Have you tried overriding it with CSS instead?

<style>
.t-window-content
{
   height: auto !important;
}
</style>

All the best,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Tags
Window
Asked by
Werner
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or