onAction increases font size

I discovered this issue:
when a label has an onAction method,
the font size from this label shows bigger than when the label doesn’t have an onAction.
I also use styleClasses, but that doesn’t solve it either…

Servoy Developer
Version R2 2.2.2-build 334
Java version 1.5.0_05-48 (Mac OS X)

Just a hunch. Do you have a style for buttons as well ?
Is it using that style perhaps ?

Hope this helps.

ROCLASI:
Just a hunch. Do you have a style for buttons as well ?
Is it using that style perhaps ?

Hope this helps.

Hi Robert! No, I don’t use styles for buttons… My navigation buttons are mostly build in HTML :wink:

onAction does nothing with the font, but makes the difference between a label and a button. As roclasi said it must be a difference in your used style