andronix3 / SwingHacks

BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Fix Scaling After Changing Range #4

Closed smasher816 closed 8 years ago

smasher816 commented 8 years ago

computeScale{X,Y} depends on the model's min and max. However, when the min or max change the scaling does not. Ex: Without this patch make a slider from 0-100 then call setMaximum(10000) and try dragging it; the knobs will barely move. This fixes that.