Fixed the size check and the dragging with rotated graphs