Problem with Zoom and resized in in-browser mode

Feb 24, 2012 at 8:48 AM

Hi,

this solution is very nice.

But I found two problems:

1. When I opened  sample project in in-browser mode  with zoom , than Overlay size is bad transformed.

if (Application.Current.Host.Settings.EnableAutoZoom)
                {
                    double zoomFactor = Application.Current.Host.Content.ZoomFactor;
                    if (zoomFactor != 0)
                    {
                        this.Height /= zoomFactor;// ?? (this.Height *= zoomFactor;)
                        this.Width /= zoomFactor;// ?? (this.Width *= zoomFactor;)
                    }
                }

2. When I opened  sample project in in-browser mode with size 1024*768 and resize ie window than overlay size don't changes.

 

Sorry, my english is very bad.

Coordinator
Mar 2, 2012 at 8:45 PM

Thanks for reporting the issues.

1. The zoom issue is fixed in the latest source code. The Silverlight 4 ChildWindow implementation behaved differently in Silverlight 5. The fix has been applied to the UpdateRenderTransform method:

double factor =
     Application.Current.Host.Settings.EnableAutoZoom
     ? Application.Current.Host.Content.ZoomFactor
     : 1;
Point p10 = new Point(1 / factor, 0);
Point p01 = new Point(0, 1 / factor);

 2. The resize should now work in-browser too.