Prevent display bug when putting browser in fullscreen mode first