Closed bjoelle closed 1 year ago
@bjoelle Good catch! Does 31b532b fix the problem?
So the label now appears correctly, but it still doesn't change colour - it's orange (which I guess is the default ?) not red
Thanks -- it was indeed the style being completely replaced. Maintaining the bits other than colour fixed it.
So code like this makes the validation label invisible if the validation fails:
As far as I can tell, this comes from the fact that
SmallLabel.setColour
replaces the style of the label entirely, and so also removes the height and width set when creating the label.