Bug in background when browser zoom greater than 100 percents

4 posts, 0 answers
  1. Nikolay Velizhanin
    Nikolay Velizhanin avatar
    13 posts
    Member since:
    Feb 2010

    Posted 19 Nov 2010 Link to this post

    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>
  2. George
    Admin
    George avatar
    1332 posts

    Posted 22 Nov 2010 Link to this post

    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
  3. DevCraft banner
  4. Nikolay Velizhanin
    Nikolay Velizhanin avatar
    13 posts
    Member since:
    Feb 2010

    Posted 22 Nov 2010 Link to this post

    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"/>
  5. George
    Admin
    George avatar
    1332 posts

    Posted 24 Nov 2010 Link to this post

    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
Back to Top