prevent dummy breaking things
This commit is contained in:
parent
21a5888022
commit
494f562b3b
1 changed files with 6 additions and 2 deletions
|
@ -463,11 +463,14 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) {
|
|||
const panelProp= tp.getPanelPropTitle(propName);
|
||||
const panelPropMom = tp.getPanelPropContainer(panelProp);
|
||||
const newValue = active ? getArtboard().theatreObject.value.width : 0;
|
||||
const textWrappingButton = tp.getPanel().querySelector('.textWrappingButton');
|
||||
|
||||
if (panelPropMom !== null && textWrappingButton !== null) {
|
||||
if (active) {
|
||||
panelPropMom.style.display = 'flex';
|
||||
tp.getPanel().querySelector('.textWrappingButton').classList.add('active');
|
||||
textWrappingButton.classList.add('active');
|
||||
} else {
|
||||
tp.getPanel().querySelector('.textWrappingButton').classList.remove('active');
|
||||
textWrappingButton.classList.remove('active');
|
||||
panelPropMom.style.display = 'none';
|
||||
}
|
||||
|
||||
|
@ -478,6 +481,7 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) {
|
|||
set(this.theatreObject.props[propName], newValue);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue