I have a situation with our silverlight 3 application where the initial load of the main application page shows the browsers horizontal scroll bar.
The width and height of the silverlight control are such that I should get a vertical scroll bar (which I do) and no horizontal scroll bar.
We have a BrowserScrollHelper class that is being used to transfer the silverlight controls size to the containing HTML element on PageLoad and PageResize, as per discussions raised in this post http://forums.silverlight.net/forums/p/26996/442817.aspx.
If I then maximise/restore the browser window, the horizontal scroll bar disappears. It's only the initial page load that doesn't seem to be able to determine the initial requirement state of the horizontal scroll bar.
I know I can use the CSS property overflow-x: hidden
to remove the scroll bar but this is just masking the problem. Besides, at the moment the application doesn't need to scroll horizontally but I can't guarantee that this will always be the case.
Constraints to be noted. IE8 is browser of choice, screen resolution is locked in at 1024x768.