MCPcopy Create free account
hub / github.com/chrxh/alien / correctLayout

Method correctLayout

source/Gui/SimulationParametersMainWindow.cpp:756–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756void 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
766bool SimulationParametersMainWindow::checkNumZones(SimulationParameters const& parameters)
767{

Callers

nothing calls this directly

Calls 1

scaleFunction · 0.85

Tested by

no test coverage detected