git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit2c934f18cf3f5c8d76fda33d66975174089f08a6
parent057fad3b4c
authorLucas Galante <[email protected]>
date2026-07-04 20:53
Enable preset dropdown in float Ramp to always open upward

 src/widget/input/ramp.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/widget/input/ramp.rs b/src/widget/input/ramp.rs
index 80a0760..b844d93 100644
--- a/src/widget/input/ramp.rs
+++ b/src/widget/input/ramp.rs
@@ -444,7 +444,8 @@ impl Ramp {
                 "Valley".to_string(),
             ],
             2,
-        ).with_label("Preset");
+        ).with_label("Preset")
+         .with_open_upward(true);
         
         Self {
             base: Widget::new(),