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
1 changed files with 489 additions and 484 deletions

View File

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