WebView doesn't resize

后端 未结 2 1083

I\'ve developed a web application for Firefox OS, but I wanted to make it run \"natively\" in Android. My application consists of a dialogue box that is a div w

2条回答
  •  天命终不由人
    2021-01-18 11:19

    The problem turned out to be that I was using position: absolute inside a position: fixed div. The outer div was resizing properly, but the inner one was not. The reason I had to use position: absolute was because there is a bug in WebKit which means that you cannot transform fixed positioned divs.

提交回复
热议问题