Webview does not load content properly when disabling its scrolling through script

I have an App in which I need to show some html content in a page but I have given my App's scrolling in it. So whole page needs to scroll combined. To achieve this I use two WebViews to navigate to string and get height of content by javascript from first
webview and assign it to second webview and then disable it's default scrolling. I have taken a rectangle over it to allow user to scroll in page. This strategy works fine where content is low but if the content is large in webview it shows blank page in top
and down and shows some content in middle. Sometimes it does not show content but Height gets assigned. I tried using RichTextBlock but it does not parse all type of tags and I don't want WebView to scroll but to adjust it's height according to content. can
anybody provide any help?
Link to my code App2

Hi RohitrkKUmar,
After looking into your sample project, I found you are nesting unnecessary Grid and making thing complex. Using fixed height in the second grid and the app will use scroll bar if the height of content is longer than the grid. I make some changes according
to my understanding, you can try the following code snippet.
<Grid x:Name="LayoutRoot" Background="White">
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition x:Name="Animation"/>
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="500"/>
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Demo App" VerticalAlignment="Center" Foreground="Black" FontSize="24" HorizontalAlignment="Center"/>
<StackPanel Grid.Row="1">
<TextBlock Name="demoText" Foreground="White" Width="Auto" Height="Auto" TextWrapping="WrapWholeWords"/>
<WebView Visibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollMode="Auto" ScrollViewer.ZoomMode="Disabled" DefaultBackgroundColor="Aqua" Margin="10" Name="aboutDescript" DOMContentLoaded="aboutDescript_DOMContentLoaded" />
<Rectangle Width="auto" Name="wbRect" Fill="Transparent"/>
</StackPanel>
<TextBox Grid.Row="2" Text="something else"></TextBox>
</Grid>
Please feel free to let me know if you have any concerns.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
the survey.

Similar Messages

  • Firefox Home with Search panel does not load/appear. When I click the home icon a message appears that says Firefox is not a valid URL. Never did that before?

    Nothing different from the question. Firefox just does not load. When I place the mouse cursor over the home icon and do not click, a message panel seemingly powered by My Yahoo states "drag the AT&T globe to the left of the home icon in the toolbar and drop it there, then select "yes" from the pop up window and you are done." This was an action I did recently (not today) but don't see what this has to do with Firefox

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    <br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Applet does not load in IE when hosted in form via SHDocVw.dll

    Hi
    I have a signed applet that usually works well in IE and Mozilla FireFox.
    It shows a popup window with the security question Yes/No/Always and works great thereafter.
    However
    We have now developed a Vb.Net application which hosts the SHDocVw.dll and now when for example I navigate to the web page within this embedded browser control from Microsoft the applet does not load and the popup window does not appear, when trying to access it via clientside scriptring it does not find the applet object.
    // this fails when called from embedded browser control
    <script>
    document.applets[0].prepareControl();
    </script>
    Please help me I would really like to get the applet to work when using this new vb.net application with the embedded browser control because it is becoming our company's standard to hos apps in this new app and not open a new instance of IE for each application.
    Thanks
    Ian Coetzer

    What does the trace say?
    To turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    for 1.5:
    deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    Print out the full trace of the exception:
    try{...}catch(Exception e){e.printStackTrace();}
    If no trace is created my guess is that the jre is never started, try the <object tag
    instead for your applet (html page) because your browser tries to run the applet with msjvm.

  • FireFox does not load any website when setting up a working proxy

    When i set a proxy for firefox , any proxy ... firefox does not load any thing , it comes with server not found in no time , fire fox is not even searching for it !

    I read those before .. but my problem is not any one of them !
    when i set proxy on firefox it does not work !
    when i set proxy on IE then setting firefox to system proxy it work !!

  • Firefox does not load the website when clicking a hyperlink in another program

    I am using Firefox 5.0.1 in Snow Leopard 10.6.8. When I click on a hyperlink in another program, Firefox launch but show me a blank page, instead of the web page of that hyperlink. This only happen if Firefox is not launched prior to clicking the hyperlink. This mean, if I am already using Firefox (Firefox is opened) and I click on the hyperlink in other program's document, Firefox will launch that web page. Is there any setting that I need to do?

    I read those before .. but my problem is not any one of them !
    when i set proxy on firefox it does not work !
    when i set proxy on IE then setting firefox to system proxy it work !!

  • Flash Player does not load content

    We have a page that should load a video but it will not work on all browsers. It works for some users in the company on IE 9 but for some of the employees it will not load. It works fine on Chrome. We are on Flash Player version 14.0.0.145, Windows 7, IE 9.

    What I would try if I encountered your situation is to check if a newer device driver for the display adapter is available; see http://forums.adobe.com/thread/945765

  • Why does imovie not show the video when you are scrolling through the timeline

    why is it when using imovie when you scroll through the timeline it doesn't show in the movie window this is for imovie 11 when editing a large video composedof many small clips

    Do you have AuthenTec TrueSuite ?
    See:
    *[[/questions/937571]] Firefox address field hide the last part of the address when loaded

  • Saved PDF does not  restore data properly when reopened

    I have a simple PDF I created in Livecycle Designer where I fill in some input fields and save the PDF. The problem I am having is when I save the PDF, and then reopen it, the data in the input fields are no longer where I originally typed them in.
    The PDF is saved as a version 8 Dynamic PDF and the Form properties is set to 'Automatic' (that is, not manual). If anyone can help me, I would be so appreciative.
    My PDF can be downloaded at:
    https://share.acrobat.com/adc/document.do?docid=bcb8f652-f468-4c81-b221-65a5e397c89d

    I think I figured this out. The code to add subforms called sect is executing on the initialize event of the P1 subform. The initialize event is running twice (once on the server (pdf creation) and once on the client inside of acrobat when it is rendered. If you move that code to the Doc Ready event the form will display correctly. I put a textfield on the form this populated when the initialization script is run. This tells me how many times it runs.
    Now back to your original problem.
    If I run your script to populate the rooms and re-open it is getting messed up again because the Doc Ready event is running each time you open the form. Instead of trying to initialize the form programatically if you use the Initial count on the binding tab of the subform all of this initiazation problems go away.
    Are you intending on having multiple rooms subforms per section or will it always be one to one? if there is a one to one mapping change the checkbox on the binding tab that indicates that multiple subforms are available.

  • Itunes on my pc does not see my ipad when i connect it through the  port

    why doesn't itunes see my ipad when i connect it to my pc?

    Have you tried restarting Apple Mobile Device Services?
    http://support.apple.com/kb/ts1567
    Also make sure you have the latest version of iTune.

  • When using a proxy server at work, Deezer page does not load normally?

    When using a proxy server at work, Deezer page does not load normally, but when I go home and use connection without proxy, everything is fine.
    It loads, and some features on the website work, but the look is not the same. Over the proxy it shows just text on the left side of the screen and I can't choose some of the options.
    When I go home and use my home connection without proxy, there are no problems, everything is OK.
    Could you please solve this?

    I found that after Firefox v29, a LOT of my settings and<BR>
    add-ons were changed / reset. Try this;
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Then check ALL of your settings. Browser and add-ons. Then restart.

  • Safari 5 does not load properly.

    Im using a MacBook Pro (Late 08) w/ Snow Leopard and Safari 5.0.1
    Pages do not load for me at all.
    For instance id go to www.espn.com and the loading bar in the address bar goes and stops www.esp|n.com, just like that..and same goes with every other website out there. After about 10 to 15 minutes it finally loads the page but the page does not load like a normal page, its all on the left side looking like a cell phone site back in the day.
    I need anything that will help me out. That actually works.

    HI,
    Login to another user account. Try Safari there. If you can load pages in that account, then log back into your user account and try troubleshooting the Safari .plist file.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Now launch Safari. If Safari loads web pages as it should, them move the .plist file to the Trash.

  • Adobe Flash Player 10.1 (latest) does not load video on some sites

    Since updating the Flash player to 10,1,82,76 many sites with flash video does not load content and usually stays black or showing a loading icon forever. Same result in all browsers (Safari, Chrome, Firefox).
    One example is revision3.com, where flash video never loads. However, flash video loads fine on youtube.com for instance. I have been trying to uninstall, reboot, repair permissions and install again with the no success.
    Anyone experienced this and found a solution?
    Thanks!

    Odd. Revision3 works fine for me. In fact the opening shot of the video I tested is someone sitting at a desk with an Apple Macbook!
    As you get the same error in all browsers, try uninstalling and reinstalling Flash Player:
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.

  • My computer says it is connected to internet but it does not load the webpage

    my computer says it is connected to the internet, full bars but it does not load the webpage when i click on safari

    If you are connected wirelessly it is possible to have full bars, but your wireless router connection to the Internet could be the problem.  Try restart your router. 

  • All video content on certain sites does not load or even appear. How do I fix this?

    On most websites, all video content is loading fine. On one or two particular sites, the video does not load, but is simply a black box. I disabled all my add-ons, and that did not take care of the problem. I disabled the Enable Hardware Acceleration option on Flash. This did nothing. Please help me fix this. I am at my wit's end.

    On Soccer Highlights, because I have Flash set to "click to play", I first need to activate Flash before the black boxes show any content. There is an infobar which slides down or I can use the plugin notification icon (looks like a small Lego block) in the address bar. (Screen shot #1, #2)
    Next I click to play and I get an ad. Of course. Followed by content. So it should work.
    When you say you disabled all your add-ons, do you mean you tested in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions (but not plugins) and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    ''If Firefox is not running:'' Hold down the Shift key when starting Firefox.
    ''If Firefox is running:'' You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    and OK the restart.
    ''Both scenarios:'' A small dialog should appear. Click "Start in Safe Mode" (''not'' Refresh).
    Any difference?

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

Maybe you are looking for