Call invalidate instead of layout when splitter is dragged.