GUI: fix wave edit right pane going off bounds

This commit is contained in:
tildearrow 2023-02-06 03:57:46 -05:00
parent c4121ccfd6
commit c7d75f45f1

View file

@ -569,6 +569,9 @@ void FurnaceGUI::drawWaveEdit() {
if (waveGenVisible) { if (waveGenVisible) {
ImGui::TableNextColumn(); ImGui::TableNextColumn();
ImVec2 waveGenSize=ImGui::GetContentRegionAvail();
waveGenSize.y=contentRegion.y;
if (ImGui::BeginChild("WaveGenView",waveGenSize)) {
if (ImGui::BeginTabBar("WaveGenOpt")) { if (ImGui::BeginTabBar("WaveGenOpt")) {
if (ImGui::BeginTabItem("Shapes")) { if (ImGui::BeginTabItem("Shapes")) {
waveGenFM=false; waveGenFM=false;
@ -1132,6 +1135,8 @@ void FurnaceGUI::drawWaveEdit() {
ImGui::EndTabBar(); ImGui::EndTabBar();
} }
} }
ImGui::EndChild();
}
ImGui::EndTable(); ImGui::EndTable();
} }