Browse Source

Fix typo autoWidth in SelectComponent

pull/1446/head
Artur Arseniev 8 years ago
parent
commit
bbc59c6301
  1. 4
      src/commands/view/SelectComponent.js

4
src/commands/view/SelectComponent.js

@ -421,13 +421,13 @@ module.exports = {
} }
const { store, selectedHandler, config } = options; 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 onlyHeight = ['tc', 'bc'].indexOf(selectedHandler) >= 0;
const onlyWidth = ['cl', 'cr'].indexOf(selectedHandler) >= 0; const onlyWidth = ['cl', 'cr'].indexOf(selectedHandler) >= 0;
const style = modelToStyle.getStyle(); const style = modelToStyle.getStyle();
if (!onlyHeight) { if (!onlyHeight) {
style[keyWidth] = widthAuto ? 'auto' : rect.w + config.unitWidth; style[keyWidth] = autoWidth ? 'auto' : rect.w + config.unitWidth;
} }
if (!onlyWidth) { if (!onlyWidth) {

Loading…
Cancel
Save