Skip to content

Commit

Permalink
genome preview size bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Oct 16, 2023
1 parent ab8125d commit d963f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Gui/GenomeEditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ namespace

void _GenomeEditorWindow::processTab(TabData& tab)
{
if (ImGui::BeginChild("##", ImVec2(0, ImGui::GetContentRegionAvail().y - scale(_previewHeight)), true)) {
_previewHeight = std::min(ImGui::GetContentRegionAvail().y - 10.0f, std::max(10.0f, _previewHeight));
if (ImGui::BeginChild("##", ImVec2(0, ImGui::GetContentRegionAvail().y - _previewHeight), true)) {
AlienImGui::Group("General properties");
processGenomeHeader(tab);

Expand All @@ -319,7 +320,6 @@ void _GenomeEditorWindow::processTab(TabData& tab)
if (ImGui::IsItemActive()) {
_previewHeight -= ImGui::GetIO().MouseDelta.y;
}

AlienImGui::Group("Preview (reference configuration)");
if (ImGui::BeginChild("##child4", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) {
showPreview(tab);
Expand Down

0 comments on commit d963f24

Please sign in to comment.