move rough pop menu down for short screens

This commit is contained in:
Stewart Allen 2020-12-07 22:59:45 -05:00
commit c4fead0461
3 changed files with 5 additions and 1 deletions

View file

@ -1616,7 +1616,7 @@
(UI.ssmClr = UC.newButton(undefined, onButtonClick, {icon:'<i class="fas fa-trash-alt"></i>'}))
], {modes:FDM, class:"ext-buttons f-row"}),
camRough: UC.newGroup(LANG.cr_menu, null, {modes:CAM, marker:true}),
camRough: UC.newGroup(LANG.cr_menu, null, {modes:CAM, marker:true, top:true}),
camRoughTool: UC.newSelect(LANG.cc_tool, {modes:CAM}),
camRoughSpindle: UC.newInput(LANG.cc_spnd_s, {title:LANG.cc_spnd_l, convert:UC.toInt, modes:CAM, visible:spindleShow}),
camRoughOver: UC.newInput(LANG.cc_sovr_s, {title:LANG.cc_sovr_l, convert:UC.toFloat, bound:UC.bound(0.01,1.0), modes:CAM}),

View file

@ -212,6 +212,7 @@
if (popper) {
let pop = DOC.createElement('div');
pop.classList.add('set-pop');
if (opt.top) pop.classList.add('top');
row.appendChild(pop);
row.setAttribute("class", "set-group noselect");
addTo = pop;

View file

@ -1124,6 +1124,9 @@ th, tr, td, label {
margin-right: 5px;
padding: 5px;
}
.set-pop.top {
transform: translateY(-20%) !important;
}
.marker {
position:absolute;
border-radius: 2px;