Skip to content

Commit

Permalink
ensure color picker popup always refreshes when resized
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Aug 20, 2024
1 parent 477a361 commit 23b4a17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions haxe/ui/components/ColorPicker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ private class HSVColorPickerImpl extends ColorPickerImpl {
private override function onReady() {
super.onReady();
saturationValueGraph.invalidateComponentLayout();
saturationValueGraph.validateNow();
}

private override function onCurrentColorChanged() {
Expand Down
2 changes: 1 addition & 1 deletion haxe/ui/components/popups/ColorPickerPopup.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import haxe.ui.util.Color;
<dropdown type="color" width="65">
<item-renderer width="100%">
<box id="selectedColorPreviewContainer" width="100%">
<box id="selectedColorPreview" width="100%" style="background-color:#ff0000">
<box id="selectedColorPreview" width="100%" style="background-color:#000000">
<label text="" /> <!-- just to get the right size for a normal (text) dropdown -->
</box>
</box>
Expand Down

0 comments on commit 23b4a17

Please sign in to comment.