Reputation: 1489
I am trying to remove all the padding from a Label contained in an HBox. I set paddingTop and paddingBottom to 0 in both the Label and HBox but there is still quite a bit of padding. I also tried setting verticalGap to 0 on HBox. If I just have a checkbox in the HBox the padding is removed fine.
Upvotes: 2
Views: 2211
Reputation: 66
Question seems rather old, but recently I faced same problem and solution was replacing
<s:Label>
some text
</s:Label>
(which gives about 190px of unwanted left padding) with
<s:Label text="some text" />
which works great!
Upvotes: 1