Skip to content

Commit

Permalink
minor layout correction in sliders and genome widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Nov 10, 2023
1 parent b3665b1 commit eb01c58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions source/Gui/AlienImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/Gui/GenomeEditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit eb01c58

Please sign in to comment.