haxeui
haxeui copied to clipboard
Button does not show label after being nulled before
The problem lies here: https://github.com/ianharrigan/haxeui/blob/master/haxe/ui/toolkit/controls/Button.hx#L360
The solution is to add _label.visible = true;
before organiseChildren();
That seems strange, if you null (destroy) the label, then it should be recreated and when components are recreated they should start off as visible. Why are you nulling the label btw?
Ah, sorry, i understand... You mean when you set the .text to null and then back to a value... gotcha... :)
Yes, I've meant nulling
the text field, sorry for the confusion
Should be fixed now in latest haxelib version.