Component resize - keep certain dimensions constant

Check this wiki: