1
0
Fork 0

Mention the -1 pixel offset

This commit is contained in:
Robbert van der Helm 2022-03-19 01:22:38 +01:00
parent aed3c14229
commit de80c53c14

View file

@ -47,6 +47,8 @@ pub(crate) fn create(
.height(Pixels(50.0))
.child_top(Stretch(1.0))
.child_bottom(Pixels(0.0));
// NOTE: VIZIA adds 1 pixel of additional height to these labels, so we'll need to
// compensate for that
Label::new(cx, "Gain").bottom(Pixels(-1.0));
ParamSlider::new(cx, Data::params, setter, |params| &params.gain);