mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 05:59:00 +08:00
Fix rendering issue of slider controls on Linux
This commit is contained in:
parent
c1d2c4e457
commit
0a351fe47d
@ -419,10 +419,12 @@ sub BUILD {
|
||||
);
|
||||
$self->slider($slider);
|
||||
|
||||
my $statictext = Wx::StaticText->new($self->parent, -1, $slider->GetValue/$self->scale);
|
||||
my $statictext = Wx::StaticText->new($self->parent, -1, $slider->GetValue/$self->scale,
|
||||
wxDefaultPosition, [20,-1]);
|
||||
$self->statictext($statictext);
|
||||
|
||||
$sizer->Add($_, 0, wxALIGN_CENTER_VERTICAL, 0) for $slider, $statictext;
|
||||
$sizer->Add($slider, 1, wxALIGN_CENTER_VERTICAL, 0);
|
||||
$sizer->Add($statictext, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
|
||||
EVT_SLIDER($self->parent, $slider, sub {
|
||||
$self->_update_statictext;
|
||||
|
Loading…
x
Reference in New Issue
Block a user