WPF WebBrowser Control - position:fixed Element jumps while scrolling (Windows 8)

前端 未结 2 1326
北恋
北恋 2020-11-27 08:22

We use the WPF WebBrowser control to display an embedded page. On Windows 8 we observe a strange jumping behavior of elements with css position:fixed while scrolling.

相关标签:
2条回答
  • 2020-11-27 09:09

    If there are discrepancies in behavior of the same web page loaded into WebBrowser control and standalone IE browser, the problem can often be fixed by implementing WebBrowser Feature Control.

    Once the feature control has been implemented, it makes sense to verify that <!DOCTYPE html> is observed by WebBrowser and the page is actually rendered in HTML5 standard mode, here's how.

    [UPDATE] The OP's sample page actually renders correctly when FEATURE_BROWSER_EMULATION is set to 9000 and the META tag is fixed to be <meta http-equiv="X-UA-Compatible" content="IE=9" /> (content="IE9" is not a valid value).

    0 讨论(0)
  • 2020-11-27 09:18

    We checked again on a new Machine also running Windows 8 and the error was gone, after some checks we determined that the new Machine had some new Updates for Windows 8 installed. We went to check for Updates on the Surface and after applying all Updates the Error seems to be gone.

    Without any recompilation or further settings just by applying the latest Win 8 Updates the error is fixed.

    Scrolling is smooth now. Same executable no changes, so i guess it was some bug in the runtime libs after all.

    0 讨论(0)
提交回复
热议问题