SpinBox: avoid going out of the range when using position-based increment