update min and max on the NumberControllerBox instance too

min and max were not being updated on the NumberControllerBox when using NumberControllerSlider
This commit is contained in:
Teoxoy 2019-01-04 21:29:01 +01:00 committed by Don McCurdy
parent a1547d0f21
commit 0027fd73e0

View File

@ -980,7 +980,7 @@ function augmentController(gui, li, controller) {
const box = new NumberControllerBox(controller.object, controller.property,
{ min: controller.__min, max: controller.__max, step: controller.__step });
common.each(['updateDisplay', 'onChange', 'onFinishChange', 'step'], function(method) {
common.each(['updateDisplay', 'onChange', 'onFinishChange', 'step', 'min', 'max'], function(method) {
const pc = controller[method];
const pb = box[method];
controller[method] = box[method] = function() {