This project is read-only.

Firefox and "windowless" parameter

Feb 17, 2009 at 10:01 AM
Dear all,

When setting the "windowless" parameter on the silverlight object, DeepEarth does not perform as it should in Firefox (v3.0.6) with regards to panning & zooming.

The reason why I am setting the windowless parameter is to prevent the silverlight control from being on top of my dynamic menus. 

Is this an issue or am I unaware of something?  It seems that there is an issue with the mouse events being passed - try clicking in the center of the navigation control, this does not fire the rotation/minimize animation.

The following is a test page to reproduce (as generated by VS2008 with "windowless" parameter set to true):

<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
    TagPrefix="asp" %>

<!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">
<head runat="server">
    <title>SilverlightTest</title>
    <style type="text/css">
        .Zone30
        {
            float: left;
            min-height: 400px;
            min-width: 200px;
            width: 29%;
        }
        .Zone70
        {
            float: left;
            min-height: 400px;
            min-width: 200px;
            width: 70%;
        }
        .Widget
        {
            background-color: #FFFFFF;
            border-left: 1px solid #CCCCCC;
            border-right: 1px solid #CCCCCC;
            margin: 5px 5px 10px;
        }
        .WidgetContent
        {
            margin:0;
            overflow:auto;
            padding:0;
        }
    </style>
</head>
<body style="height:100%;margin:0;">
    <form id="form1" runat="server" style="height:100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="Zone30">
    </div>
    <div class="Zone70">
            <div class="Widget">
                <div class="WidgetContent" style="visibility: visible;">
                    <div style="padding: 1px; visibility: visible;">
                        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
                            width="100%" height="660">
                            <param name="source" value="ClientBin/SilverlightTest.xap"/>
                            <param name="background" value="white" />
                            <param name="minRuntimeVersion" value="2.0.31005.0" />
                            <param name="autoUpgrade" value="true" />
                            <param value="true" name="windowless" />
                            <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
                                 <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
                            </a>
                        </object>                     
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>

Feb 18, 2009 at 8:33 AM
I tried this in IE7 and FF 3.0.4

All is well in IE

In FF I have a different issue, which is the rotation of the map, this has a funny behaiour, but the animation of the navigation control is working fine for me

what version of FF are you using?
Feb 18, 2009 at 8:38 AM
Also I am using the latest version from the "Source Code" page, not sure what version you are using?
Feb 18, 2009 at 9:10 AM
All is good in IE7 as well, but not in Firefox (using v3.0.6).

My main problem is that the panning & zooming
  • Panning - All "jiggery" and mouse is not released most of the time (still pans "jiggery" after button release)
  • Zooming - At random point and not at mouse position, also sometimes zoom gets stuck (cant' zoom in or out)
Using latest SVN checkout.

Aslo note that this is affecting PointBase implementations on a GeometryLayer (UpdateMode.ElementUpdate, haven't tested other update modes) as well.
Feb 20, 2009 at 7:44 PM
There are quite a few hits when doing an internet search on "Firefox Silverlight windowless issue".  If this is a Firefox/MSFT issue, it may be beyond our scope to fix.  However, if anyone has thoughts to what we may be doing to either cause this or work around it, let us know.
Feb 23, 2009 at 6:13 AM
I have overcome this issue by changing the "overfow: auto" attribute of the CSS "WidgetContent" class to "overflow: hidden" (can't find the link now but it is mentioned somewhere on the silverlight.net forums I think).

It definiately seems that Firefox is causing the issue.