When the "snap to grid" option is enabled, resize should snap to grid too.
Open Main Menu: "Diagram" -> "Properties" There select the tab "General" and check the option "Snap component size". This should solve this issue.