How to resize a webbrowser control based on the height of a div?

Up vote 0 down vote favorite 1 share g+ share fb share tw.

I thought I had found the solution to this problem in the following question, but it does not behave as planned. Windows Phone 7 WebBrowser content height I am loading some html content into a div that is inside of a webbrowser control, when the page has loaded I pass the height of the div back to the control with this. OnLoad=\"window.external.

Notify(''+document. GetElementById('content'). OffsetHeight);\" and in the ScriptNotify call back i'm currently doing to something like this private void PlayerBrowser_ScriptNotify(object sender, NotifyEventArgs e) { PlayerBrowser.

Height = Convert. ToDouble(e. Value) * 0.5; } some values return but when the content is snug at the top of the webbrowser control I will truncate some of the content from the bottom.

And when I adjust the height (by changing 0.5 to another number) so that there should be more than enough space to fit the content in, it will centre it all vertically and then still truncate the bottom of the control. My html is being specified like this. String newHtmlString = "" + "" + ""; newHtmlString += ""; newHtmlString += htmlContent + ""; c# javascript silverlight windows-phone-7 link|improve this question asked Jan 3 at 15:45Joseph Le Brech2,4721413 83% accept rate.

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.

Related Questions