| 754 | } |
| 755 | |
| 756 | void SimulationParametersMainWindow::correctLayout(float origMasterHeight, float origExpertWidgetHeight) |
| 757 | { |
| 758 | auto detailHeight = ImGui::GetWindowSize().y - getMasterWidgetRefHeight() - getExpertWidgetRefHeight(); |
| 759 | |
| 760 | if (detailHeight < scale(DetailWidgetMinHeight) || _masterWidgetHeight < scale(MasterMinHeight) || _expertWidgetHeight < scale(ExpertWidgetMinHeight)) { |
| 761 | _masterWidgetHeight = origMasterHeight; |
| 762 | _expertWidgetHeight = origExpertWidgetHeight; |
| 763 | } |
| 764 | } |
| 765 | |
| 766 | bool SimulationParametersMainWindow::checkNumZones(SimulationParameters const& parameters) |
| 767 | { |