From eb01c5852bee9d532bd873bc559cc021d2e08114 Mon Sep 17 00:00:00 2001 From: Christian Heinemann Date: Fri, 10 Nov 2023 18:45:39 +0100 Subject: [PATCH] minor layout correction in sliders and genome widgets --- source/Gui/AlienImGui.cpp | 8 -------- source/Gui/GenomeEditorWindow.cpp | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/source/Gui/AlienImGui.cpp b/source/Gui/AlienImGui.cpp index 50545257a..93e282e9f 100644 --- a/source/Gui/AlienImGui.cpp +++ b/source/Gui/AlienImGui.cpp @@ -1528,17 +1528,9 @@ bool AlienImGui::BasicSlider(Parameter const& parameters, T* value, bool* enable ImGui::PushID(color); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - scale(parameters._textWidth)); if (parameters._colorDependence && isExpanded) { - { - ImVec2 pos = ImGui::GetCursorPos(); - ImGui::SetCursorPos(ImVec2(pos.x, pos.y + ImGui::GetStyle().FramePadding.y)); - } AlienImGui::ColorField(Const::IndividualCellColors[color], 0); ImGui::SameLine(); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - scale(parameters._textWidth)); - { - ImVec2 pos = ImGui::GetCursorPos(); - ImGui::SetCursorPos(ImVec2(pos.x, pos.y - ImGui::GetStyle().FramePadding.y)); - } } //slider diff --git a/source/Gui/GenomeEditorWindow.cpp b/source/Gui/GenomeEditorWindow.cpp index 949c30b0d..da39c7454 100644 --- a/source/Gui/GenomeEditorWindow.cpp +++ b/source/Gui/GenomeEditorWindow.cpp @@ -36,7 +36,7 @@ namespace auto const ContentHeaderTextWidth = 215.0f; auto const ContentTextWidth = 190.0f; auto const DynamicTableHeaderColumnWidth = 335.0f; - auto const DynamicTableColumnWidth = 300.0f; + auto const DynamicTableColumnWidth = 308.0f; auto const SubWindowRightMargin = 0.0f; }