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 panelProp= tp.getPanelPropTitle(propName);
|
||||||
const panelPropMom = tp.getPanelPropContainer(panelProp);
|
const panelPropMom = tp.getPanelPropContainer(panelProp);
|
||||||
const newValue = active ? getArtboard().theatreObject.value.width : 0;
|
const newValue = active ? getArtboard().theatreObject.value.width : 0;
|
||||||
|
const textWrappingButton = tp.getPanel().querySelector('.textWrappingButton');
|
||||||
|
|
||||||
|
if (panelPropMom !== null && textWrappingButton !== null) {
|
||||||
if (active) {
|
if (active) {
|
||||||
panelPropMom.style.display = 'flex';
|
panelPropMom.style.display = 'flex';
|
||||||
tp.getPanel().querySelector('.textWrappingButton').classList.add('active');
|
textWrappingButton.classList.add('active');
|
||||||
} else {
|
} else {
|
||||||
tp.getPanel().querySelector('.textWrappingButton').classList.remove('active');
|
textWrappingButton.classList.remove('active');
|
||||||
panelPropMom.style.display = 'none';
|
panelPropMom.style.display = 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -479,6 +482,7 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// phew.. so we don't want to get into typescript and react atm
|
// phew.. so we don't want to get into typescript and react atm
|
||||||
|
|
Loading…
Reference in a new issue