From 7fe4382d3861dd7737f0b0286050d88aa0e1bc84 Mon Sep 17 00:00:00 2001 From: wangqr Date: Mon, 28 Oct 2019 20:45:29 -0400 Subject: [PATCH] Remove hardcoded height of the slider Before this the slider is only partially displayed --- src/dialog_timing_processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog_timing_processor.cpp b/src/dialog_timing_processor.cpp index e0b7dc00b..78fe1d878 100644 --- a/src/dialog_timing_processor.cpp +++ b/src/dialog_timing_processor.cpp @@ -197,7 +197,7 @@ DialogTimingProcessor::DialogTimingProcessor(agi::Context *c) make_ctrl(&d, adjBoxes, _("Max overlap:"), &adjOverlap, adjsEnable, _("Maximum overlap between the end and start time for two subtitles to be made continuous, in milliseconds")); - adjacentBias = new wxSlider(&d, -1, mid(0, OPT_GET("Tool/Timing Post Processor/Adjacent Bias")->GetDouble() * 100, 100), 0, 100, wxDefaultPosition, wxSize(-1,20)); + adjacentBias = new wxSlider(&d, -1, mid(0, OPT_GET("Tool/Timing Post Processor/Adjacent Bias")->GetDouble() * 100, 100), 0, 100); adjacentBias->SetToolTip(_("Sets how to set the adjoining of lines. If set totally to left, it will extend or shrink start time of the second line; if totally to right, it will extend or shrink the end time of the first line.")); auto adjSliderSizer = new wxBoxSizer(wxHORIZONTAL);