Simplify layout and _resize.