GUI: fix wave edit right pane going off bounds
This commit is contained in:
parent
c4121ccfd6
commit
c7d75f45f1
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue