1

I have a silverlight application in which I am using the windowless property to show text . Silverlight Plugin Size is 1000*2000, I Have a button (siverlight control) on the Top. I am showing some html text using DIV real time. Its working fine.

My Silverlight Plugin & DIV both style property is= "position:absolute'.

This application is working fine in IE, but When I run this application in Firefox Button doesn't dsiplayed.

Please let me know whats a issue with Firefox ?

Thanks in advance, Laxmilal

Ivo
  • 3,406
  • 4
  • 33
  • 56
Laxmi Lal Menaria
  • 1,433
  • 4
  • 17
  • 30
  • What size is your containing div? Are you hiding the div and then showing it? (FFox used to have an issue with this, dunno if it still does). If you right click where the control should be, do you get the silverlight context menu? – slugster Apr 12 '10 at 13:01
  • My DIV size is 1000*2000, and updating height realtime based on HTML conetnts. – Laxmi Lal Menaria Apr 12 '10 at 13:45
  • Does it work fine in Chrome, Safari, Opera? – Gergely Orosz Apr 12 '10 at 14:40
  • Its working fine in Crome, Safari. – Laxmi Lal Menaria Apr 13 '10 at 06:55
  • Sounds more like a variation in HTML markup/css handling than a Silverlight issue to me. Try using a similar markup and position styles but use an Img (or better yet something else the uses object) instead of Silverlight plugin. Does that look ok? – AnthonyWJones Apr 13 '10 at 07:50

1 Answers1

0

In your html, specify following code in CSS

html {
height: 100%;
}
body {
height: 100%;
padding: 0;
margin: 0;
min-width: 800px;
min-height: 600px;
}

#silverlightControlHost {
height: 100%;}  

Then in the body

<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
    <param name="source" value="SOURCE OF YOUR XAP"/>
    <param name="autoUpgrade" value="true" />
                <!--Your other para-->
</object>

Khalid Rafique
  • 161
  • 1
  • 2
  • 13