always auto resize linear view settings

This commit is contained in:
Stepland 2023-07-28 13:24:28 +02:00
parent 1a5044d371
commit a785aef0db

View File

@ -785,7 +785,7 @@ void LinearView::set_zoom(int newZoom) {
} }
void LinearView::display_settings() { void LinearView::display_settings() {
if (ImGui::Begin("Linear View Settings", &shouldDisplaySettings)) { if (ImGui::Begin("Linear View Settings", &shouldDisplaySettings, ImGuiWindowFlags_AlwaysAutoResize)) {
if (ImGui::SliderInt("Zoom##Linear View Settings", &zoom, -10, 10, "%d")) { if (ImGui::SliderInt("Zoom##Linear View Settings", &zoom, -10, 10, "%d")) {
set_zoom(zoom); set_zoom(zoom);
} }