Repaint rect too small on elements with shadows