Merge branch 'bx-696-startproject' of https://git.svs-tech.pro/ksenia_mikhailova/mns-mini-zabor into bx-696-startproject

This commit is contained in:
commit 7b6d5ba0da
1 changed files with 6 additions and 6 deletions

View File

@ -49,13 +49,13 @@ const changeParametres = () => {
form_state.total_length_mm = form_state.total_length * 1000
if (auto_section_width.value) {
// form_state.length
if (form_state.total_length_mm % form_state.length) {
let w = parametric.length.max
while ((form_state.total_length_mm % form_state.length > 0) && w > parametric.length.min) {
w -= parametric.length.step
}
form_state.length = w
// if (form_state.total_length_mm % form_state.length) {
let w = parametric.length.max
while (((form_state.total_length_mm % w) > 0) && w > (parametric.length.min + parametric.length.step * 10)) {
w -= parametric.length.step
}
form_state.length = w
// }
}
if (form_state.total_length_mm < form_state.length) {