reduce some reflow and repaint