Skip to content

Commit

Permalink
dont use filler if style specifies it to be hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Apr 19, 2024
1 parent 12b97fa commit 081fcdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion haxe/ui/components/pickers/ItemPicker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,11 @@ class ItemPickerBuilder extends CompositeBuilder {
}

_panelFiller.width = panelWidth - picker.width - offset + 1;
if (_panelFiller.width > 0) {
var useFiller = true;
if (_panelFiller.style != null && _panelFiller.style.hidden == true) {
useFiller = false;
}
if (useFiller && _panelFiller.width > 0) {
_panelFiller.show();
} else {
_panelFiller.hide();
Expand Down

0 comments on commit 081fcdf

Please sign in to comment.