make getScaleRect able to ignore width also