Back to the land of browser inconsistencies :¬(
I had such high hopes for the silverlight plug-in. Cross-browser incompatablities can be the most time consuming areas of web development, so a browser plug-in overcomes these by sandboxing the application so it handles all of it's rendering internally
Or so I thought. Having developed all my silverlight under Internet Explorer, everything renders fine with the default 100% heights and widths. Rendering the controls is important for templated controls and the loaded event only fires when the control is rendered and the loaded event is important in order for the control to pipe up and accept some data from the dartabinding process.
To my amazement, and slight relief, Firefox actually requires a fixed height in order for it to render. By default, you are given a silverlight plugin, set to 100% height and width, wrapped in a div with a height : 100% style attribute. Just change the containing div to a fixed height and your controls now render fine in Firefox :¬)
so from this
<div style="height: 100%;">
<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/NavTeqBannerMain.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" InitParameters="ctlid=SilverLightBanner" />
</div>
to this
<div style="height: 256px;">
<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/NavTeqBannerMain.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" InitParameters="ctlid=SilverLightBanner" />
</div>
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5