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

Bug in background when browser zoom greater than 100 percents

3 Answers 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nikolay Velizhanin
Top achievements
Rank 1
Nikolay Velizhanin asked on 19 Nov 2010, 07:28 AM
Standard silverlight ChildWindow works fine. But RadWindow has broken background and location.


Default.aspx file:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SGP.GisPortal.WebApp._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%; overflow: hidden;">
<head id="Head1" runat="server">
    <title>Геоинформационный портал</title>
    <style type="text/css">
        #silverlightControlHost
        {
       height: 100%;
   }
    </style>
    <script language=javascript>
        if (window.name == null || window.name == '') {
            window.name = 'GEOPORTAL';
        }
      </script>
      
    <script type="text/javascript" src="Silverlight.js"></script>
    <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null && sender != 0) {
              appSource = sender.getHost().Source;
            }
            
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }

            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;

            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }
    </script>
</head>
<body style="height: 100%; margin: 0; padding: 0; overflow: hidden;">
    <form id="form1" runat="server" style="height:100%">

    <div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
 <param name="source" value="ClientBin/SGP.GisPortal.SilverlightApp.xap?v=e7c2e9fa-7d53-4613-b331-e1501caf7eef"/>
 <param name="onError" value="onSilverlightError" />
 <param name="background" value="white" />
 <param name="minRuntimeVersion" value="4.0.50524.0" />
 <param name="autoUpgrade" value="true" />
 <param name="windowless" value="true" />
 <param name="EnableGPUAcceleration" value="true" />
 <param name="enableautozoom" value="false"/>
 <a href="Resources/SilverlightSetup/Silverlight.exe" style="text-decoration:none">
   <br>
   <p>Установить Microsoft Silverlight...</p>
   <img src="Resources/SilverlightSetup/InstallSilverlight.png" alt="Установить Microsoft Silverlight" style="border-style:none"/>
 </a>
   </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
    </form>
</body>
</html>

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 22 Nov 2010, 03:53 PM
Hello Nikolay,

I tried to reproduce the problem, but to no avail. Could you please try to reproduce the problem in our online examples here - http://demos.telerik.com/Silverlight/#Window/APC.  

Looking forward to your reply.

All the best,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Nikolay Velizhanin
Top achievements
Rank 1
answered on 22 Nov 2010, 04:30 PM
Problem in exampes does not reproduced because silverlight autozoom parameter in default.aspx is true.
Try set it to false:

<param name="enableautozoom" value="false"/>
0
George
Telerik team
answered on 24 Nov 2010, 04:55 PM
Hello Nikolay,

Sorry for this misunderstanding. We reproduced the issue. Thank you for reporting this bug, it helps us in improving our products. I am glad to your telerik points for reporting this abnormal behavior of our RadWindow control. We will investigate the cause for this issue and we will fix it in one of our future releases. You can track this progress in our Public Issue Tracking System (PITS) with Issue ID = 4132.

Regards,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Window
Asked by
Nikolay Velizhanin
Top achievements
Rank 1
Answers by
George
Telerik team
Nikolay Velizhanin
Top achievements
Rank 1
Share this question
or