To rezise a shape or image you need to change both width and height. If the values are by example 290 height and 204 width you have to calculate how much the width has to change if the height goes to 240 to keep the same ratio.
It would by handy if there was a checkbox next to size to lock the height-width ratio. So when one of them changes the other changes with it.