Rednose-Ruler: Added resizeConstrained to avoid incorrect negative values