Skip to content

Commit 23b4a17

Browse files
committed
ensure color picker popup always refreshes when resized
1 parent 477a361 commit 23b4a17

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

haxe/ui/components/ColorPicker.hx

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ private class HSVColorPickerImpl extends ColorPickerImpl {
175175
private override function onReady() {
176176
super.onReady();
177177
saturationValueGraph.invalidateComponentLayout();
178+
saturationValueGraph.validateNow();
178179
}
179180

180181
private override function onCurrentColorChanged() {

haxe/ui/components/popups/ColorPickerPopup.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import haxe.ui.util.Color;
1313
<dropdown type="color" width="65">
1414
<item-renderer width="100%">
1515
<box id="selectedColorPreviewContainer" width="100%">
16-
<box id="selectedColorPreview" width="100%" style="background-color:#ff0000">
16+
<box id="selectedColorPreview" width="100%" style="background-color:#000000">
1717
<label text="" /> <!-- just to get the right size for a normal (text) dropdown -->
1818
</box>
1919
</box>

0 commit comments

Comments
 (0)