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

Content behind the Window growing in size

2 Answers 63 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 01 Dec 2009, 10:19 PM
Hi,

I have a problem that is kinda hard to explain.
I am creating a RadWindow from code-behind (more specifically a ViewModel) then calling ShowDialog.  The window works great and the modal background is working properly, but all of my content that the modal background is covering seems to grow in scale.  Everything gets slightly bigger from button sizes to font sizes and such.  When i close the RadWindow the content maintains this growth in size.

I have tested using a SL3 ChildWindow.  This object also seems to cause the background content to grow, but when i close it the content goes back to its initial size.  Still a problem but at least it goes back.

Is there any reason anyone can think of as to why opening a RadWindow would cause the content behind it to grow?

EDIT*
I just tried adding an instance of a RadWindow to the XAML of one of the UserControls and just by being there in the VisualTree without even opening it, it causes the same growth result.

2 Answers, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 1
answered on 02 Dec 2009, 02:31 PM
I found it!

In IE8 If you have the browser zoom less than 100% Like 75% so that all text is smaller.  When you introduce a RadWindow into the VisualTree it forces the content of the Browser to run at zoom 100% but doesnt change the actual browser zoom.  This is why when I open a RadWindow it causes the content to grow because the content is now at 100% zoom.  But like i said the browsers zoom setting in the bottom right still says 75%.  When i changed my browser zoom back to 100% the growth effect does not occur.
0
Miroslav Nedyalkov
Telerik team
answered on 02 Dec 2009, 04:21 PM
Hi Jason,

This is a bug in Silverlight - if you try to use the Resized event of the Application.Current.Host.Content object, the IE zoom is changing. Unfortunately we don't have control over this.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Jason
Top achievements
Rank 1
Answers by
Jason
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or