From 8c452f8af3dca26c1e90d22fd555f9dc52e7dda7 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Mon, 13 May 2024 22:01:32 +0200 Subject: [PATCH] force redraw after picker is shown --- 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 bb20be564..2122d720b 100644 --- a/haxe/ui/components/ColorPicker.hx +++ b/haxe/ui/components/ColorPicker.hx @@ -220,6 +220,11 @@ private class HSVColorPickerImpl extends ColorPickerImpl { } } + @:bind(this, UIEvent.SHOWN) + private function _onShown(_) { + _saturationValueGraphLastHue = null; + } + private var _saturationValueGraphBytes:Bytes = null; private var _saturationValueGraphLastHue:Null = null; private function updateSaturationValueGraph() {