I have been battling with this for days and cannot find a solution. There is not a hard-coded height anywhere. Why is the height of this window so big overall and how can I fix it?
9 Answers, 1 is accepted
The default wdth and heigh ot RadWindow are 300px and should be rendered with these sizes unless its AutoSize functionality is not enabled. When the window is auto sized (AutoSize="true") it gets resized depending on its content size - can you, please, verify that this is not the case on your side?
If this is not the case, though, please send us a runnable sample we can replicate the problem with so we can examine what is causing it on our side.
Regards,
Vessy
Telerik
The only thing I can suggest you is to examine the content of the problematic conent page of the Window ad see whether there is no any height/width set in it explicitly.
Regards,
Vessy
Telerik
We will be glad to assist in searching for the problem , but we will need to examine the code which is leading to the undesired behavior. Please, prepare and send us a runnable in which we can reproduce the issue so we will be able to examine it on our side and advise you further.
Regards,
Vessy
Telerik
Hello Stephanie,
I suggest you start from the following article that explains the most common problems related to AutoSizing and how to resolve them: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/troubleshooting/autosizing-issues.
If you still have difficulties, you can open a support ticket and send us an example. Trimming it down to the bare bones minimum that shows the problem will help us assist much more efficiently. Also, we do not need the Telerik assemblies, just noting the version you are using is enough. This should help get the sample down to a few text files.
Regards,
Telerik
Hello Stephanie,
Sorry for not being clear enough. WIth "runnable", we mean code that we can get and run because it does not depend on custom classes, data sources or other code that we cannot emulate. We have our own assemblies, so leaving them our simply reduces the attachment size for everyone's convenience.
As for the original issue - for anyone else having the same problem - it turned out that some elements did not have specified widths, some elements had width: auto or width: 100%, there were elements with float: right which puts them out of the standard element flow and there are some paddings in the content. This is what caused the additional whitespace. For more details on problems with autosizing I advise reviewing the following article in detail: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/troubleshooting/autosizing-issues.
Regards,
Telerik