From de80c53c142005581479e461d9e241a4f29d1e7e Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 19 Mar 2022 01:22:38 +0100 Subject: [PATCH] Mention the -1 pixel offset --- plugins/examples/gain-gui-vizia/src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/examples/gain-gui-vizia/src/editor.rs b/plugins/examples/gain-gui-vizia/src/editor.rs index fb45afe8..996c1f8f 100644 --- a/plugins/examples/gain-gui-vizia/src/editor.rs +++ b/plugins/examples/gain-gui-vizia/src/editor.rs @@ -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| ¶ms.gain);