Adjust frame width and height.