Android WebView renders blank/white, view doesn't update on css changes or HTML changes, animations are choppy

后端 未结 9 1500
不知归路
不知归路 2020-11-27 10:25

When ever I make a css class change, the changes don\'t always appear. This appears to happen when I have a touch event that adds something like a down class name to a butto

9条回答
  •  隐瞒了意图╮
    2020-11-27 10:45

    re: the redraw problem, you can force a redraw by reading a property from the element

    so say you do this:

    $('#myElement').addClass('foo'); // youre not seeing this take effect
    

    if you do this afterwards:

    $('#myElement').width();
    

    it will force a redraw.

    This way you can be selective instead of redrawing the whole page all the time, which is expensive

提交回复
热议问题