Try using document.body. ClientHeight in your Javascript. Also you might have better luck with your scenario if you construct everything inside the WebBrowser.
You can put images in the HTML of course and you could put a still-frame placeholder image for your MediaElement, calling back into C# and poping up a real MediaElement when needed.
Up vote 1 down vote favorite share g+ share fb share tw.
I want to set the height of WebBrowser control dynamically, depending on the content height. My scenario is: On that specific view I have different elements - an Image, MediaElement etc. and between those rich text that is presented in that WebBrowser control. To achieve unified scrolling I have wrapped all content in a scrollview and disabled scrolling on the webbrowser control.
Currently I have a JavaScript method that gets called when body has done loading and sends the height information to C# codebehind but the calculated height is incorrect. My hack today is to basically multiply the returned value with about 1.75. In the page head I have the following meta tags: " This is my body tag.
My JavaScript functions: pageWrapper is a direct child of body. Windows-phone-7 webbrowser-control link|improve this question edited May 26 '11 at 14:50 asked May 23 '11 at 8:38texmex51,922613 100% accept rate.
It looks like you're trying an aproach suggested by the answer to this question: stackoverflow.com/questions/4684307/… I'd recommend trying 'document.body. ClientHeight'. I don't know which element you have with an id of 'pageWrapper'.
If you can provide more details about the height value you're getting back and the value you're expecting that will help. Which element has the 'pageWrapper' id on it? Also, I'm curious about your scenario.
Why do you want to set the WebBrowser height to the content height? – Skeets May 25 '11 at 18:56.
Well it kind of is a solution and I'll mark it as an correct answer but I still don't know why the values from offsetHeight are incorrect. – texmex5 Jun 4 '11 at 12:07 1 I don't know either. These pages are not directly related to your problem but you may find them to be helpful background info (the second is what led me to suggest you use body.
ClientHeight) windowsteamblog.com/windows_phone/b/wpde..., quirksmode.org/mobile/viewports2.html – Skeets Jun 6 '11 at 21:17.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.