From dfbaf80a5c9bb361ae6cb4a22c6dcc044a7e1dea Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Thu, 8 Aug 2024 21:38:48 +0200 Subject: [PATCH] invalidate canvas layout when picker is ready to resize canvas --- haxe/ui/components/ColorPicker.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/haxe/ui/components/ColorPicker.hx b/haxe/ui/components/ColorPicker.hx index 224eb8ec3..289b09b0d 100644 --- a/haxe/ui/components/ColorPicker.hx +++ b/haxe/ui/components/ColorPicker.hx @@ -172,6 +172,11 @@ private class HSVColorPickerImpl extends ColorPickerImpl { return super.set_currentColor(value); } + private override function onReady() { + super.onReady(); + saturationValueGraph.invalidateComponentLayout(); + } + private override function onCurrentColorChanged() { invalidateComponentData(); }