explicit control for adaptive slicing. reorder menus

This commit is contained in:
Stewart Allen 2020-11-20 15:15:07 -05:00
commit a2a75dc5f7
4 changed files with 27 additions and 11 deletions

View file

@ -134,9 +134,12 @@
// } });
// onSliceDone(slices);
const sliceMinHeight = spro.sliceAdaptive && spro.sliceMinHeight > 0 ?
Math.min(spro.sliceMinHeight, sliceHeight) : 0;
SLICER.sliceWidget(widget, {
height: sliceHeight,
minHeight: sliceHeight > spro.sliceMinHeight ? spro.sliceMinHeight : 0,
minHeight: sliceMinHeight,
firstHeight: spro.firstSliceHeight,
// debug: true,
// xray: 3,