Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS: position:fixed not working on Windows Phone

I am trying to develop a web based app for Windows Phone 8. I have a web page with two divs with the style position:fixed. If I open the Internet Explorer app on the Windows Phone and navigate to my web page, the fixed elements display perfectly. However, when I view the web page in the WebBrowser WP8 control in the native app, the position:fixed style is completely ignored.

I also noticed that all my css transitions also will only work in the full Internet Explorer app. This is not as big of a problem, but the lack of fixed positioning is a real issue. Why is the WebBrowser doing this, and are there any workarounds?

I know fixed positioning and transitions did not work in WP7, I'm wondering if maybe the WP8 WebBrowser control has the same code as the WP7 WebBrowser control.

like image 290
msbg Avatar asked Feb 14 '23 08:02

msbg


1 Answers

position:-ms-device-fixed did the trick for me.

like image 186
user5936528 Avatar answered Feb 16 '23 02:02

user5936528