From bbc59c63014692c08b0bd52b9edac2fea4176575 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 15 Sep 2018 13:44:36 +0200 Subject: [PATCH] Fix typo autoWidth in SelectComponent --- src/commands/view/SelectComponent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/view/SelectComponent.js b/src/commands/view/SelectComponent.js index ef7cc0af6..33d0e7e2c 100644 --- a/src/commands/view/SelectComponent.js +++ b/src/commands/view/SelectComponent.js @@ -421,13 +421,13 @@ module.exports = { } const { store, selectedHandler, config } = options; - const { keyHeight, keyWidth, autoHeight, widthAuto } = config; + const { keyHeight, keyWidth, autoHeight, autoWidth } = config; const onlyHeight = ['tc', 'bc'].indexOf(selectedHandler) >= 0; const onlyWidth = ['cl', 'cr'].indexOf(selectedHandler) >= 0; const style = modelToStyle.getStyle(); if (!onlyHeight) { - style[keyWidth] = widthAuto ? 'auto' : rect.w + config.unitWidth; + style[keyWidth] = autoWidth ? 'auto' : rect.w + config.unitWidth; } if (!onlyWidth) {