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

RadWindow size being calculated incorrectly (Q2 2015 release)

8 Answers 79 Views
Window
This is a migrated thread and some comments may be shown as answers.
Geoff
Top achievements
Rank 1
Geoff asked on 05 Aug 2015, 05:51 PM

After upgrading Telerik to the latest version, it appears that RadWindows with a Lightweight render mode do not render at dimensions specified in the <telerik:RadWindow> tag. While I was using a custom skin when I started testing, I ultimately removed all skins from the window (that is, I set "EnableEmbeddedSkins" to false and then did not specify a skin) in an attempt to narrow down the problem.

With no skin at all, a RadWindow with attributes of "Width='338px' and Height='309px'" rendered with the correct height, but was 368 pixels wide. Incidentally, the inline style applied to the RadWindowWrapper in the output HTML markup was 352 pixels, which rules out a CSS issue because this value is also wrong.

Next, I tried removing the dimension attributes, meaning that the window should have rendered with the default dimensions of 300 pixels by 300 pixels. Instead, it rendered at 330 x 300 pixels, with an inline height of 314 pixels. So the dimensions are, at least, consistently wrong.

Why is this happening, and what can I do to get a RadWindow to render at the dimensions set in its attributes?

On a related note: the aforementioned custom skin I was using when I started test has a "padding:0;" applied to the RadWindow, because I do not want the window to have any borders. With that styling applied, the height of the RadWindow also does not match the height set in the RadWindow's attribute. I assume these problems are related.

8 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 10 Aug 2015, 01:39 PM
Hello Geoff,

The window in lightweight renders the proper dimensions set:

ASPX:
<telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" RenderMode="Lightweight" Width="300px" Height="300px"></telerik:RadWindow>

You should also take into consideration that dimensions include borders and other window elements as well. You can examine the computed styles for details - http://screencast.com/t/hHgHst05NkD8

Regards,
Danail Vasilev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Geoff
Top achievements
Rank 1
answered on 10 Aug 2015, 02:06 PM

Thank you for responding Danail.

Using the simple ASPX you posted, I was able to duplicate your correct results. However, as I slowly added properties to bring the window closer to my original, I found that the issue I described in my original post only occurs when the window is modal. That is, it has an attribute of Modal="true". When modal is true, I think the window in your example would render at 326 x 300 instead of 300 x 300. Can you confirm this, please?

0
Danail Vasilev
Telerik team
answered on 12 Aug 2015, 08:56 AM
Hello Geoff,

I confirm this is an issue with the window's dimensions in lightweight when modal. The issue, however, will be fixed for the upcoming Q2 2015 SP2 release, scheduled for the end of this month. For the time being you can try the latest internal build.

Regards,
Danail Vasilev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Geoff
Top achievements
Rank 1
answered on 12 Aug 2015, 01:32 PM
Thank you very much, Danail. I look forward to the next release.
0
Robert
Top achievements
Rank 1
answered on 16 Sep 2015, 05:12 PM
Danail -- has this fix been released?
0
Danail Vasilev
Telerik team
answered on 17 Sep 2015, 11:27 AM
Hi Guys,

Apologize for the misleading information - the issue with the wrongly window's dimensions in lightweight render mode will be fixed for the Q3 2015 release, scheduled for the end of this September. The issue is logged here (http://feedback.telerik.com/Project/108/Feedback/Details/56242), its status is set to completed and its release is Q3 2015. You may also find useful the possible workarounds in the item.

Regards,
Danail Vasilev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Bernie
Top achievements
Rank 1
answered on 04 Apr 2016, 01:33 PM

Hi! ...

I'm using the version 2016.1.113.45 and every time I open a window in lightweight mode, the window width becomes 2 px smaller ... it doesn't matter modal=true or false. It's the same behavior. In classic mode every works like expected. Please see attached samples!

Can you confirm this issue?

Thank you!

Peter

0
Danail Vasilev
Telerik team
answered on 07 Apr 2016, 07:17 AM
Hello Peter,

I wasn't able to reproduce the mentioned issue. The window's dimensions are properly set on my side with the Lightweight render mode - http://screencast.com/t/uuM7mLT9SfCP

ASPX:
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Web20"></telerik:RadSkinManager>
    <telerik:RadWindow ID="RadWindow1" runat="server" Width="620px" Height="565px" VisibleOnPageLoad="true" RenderMode="Lightweight"></telerik:RadWindow>
</form>

Could you please provide us the exact code that reproduce the issue, so that I can investigate it further?

You can also try upgrading to the latest official version - 2016.1.225.

Regards,
Danail Vasilev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Window
Asked by
Geoff
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Geoff
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Bernie
Top achievements
Rank 1
Share this question
or