| @@ -157,19 +157,19 @@ void Label::componentMovedOrResized (Component& component, bool /*wasMoved*/, bo | |||||
| { | { | ||||
| auto& lf = getLookAndFeel(); | auto& lf = getLookAndFeel(); | ||||
| auto f = lf.getLabelFont (*this); | auto f = lf.getLabelFont (*this); | ||||
| auto border = lf.getLabelBorderSize (*this); | |||||
| auto borderSize = lf.getLabelBorderSize (*this); | |||||
| if (leftOfOwnerComp) | if (leftOfOwnerComp) | ||||
| { | { | ||||
| auto width = jmin (roundToInt (f.getStringWidthFloat (textValue.toString()) + 0.5f) | auto width = jmin (roundToInt (f.getStringWidthFloat (textValue.toString()) + 0.5f) | ||||
| + border.getLeftAndRight(), | |||||
| + borderSize.getLeftAndRight(), | |||||
| component.getX()); | component.getX()); | ||||
| setBounds (component.getX() - width, component.getY(), width, component.getHeight()); | setBounds (component.getX() - width, component.getY(), width, component.getHeight()); | ||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| auto height = border.getTopAndBottom() + 6 + roundToInt (f.getHeight() + 0.5f); | |||||
| auto height = borderSize.getTopAndBottom() + 6 + roundToInt (f.getHeight() + 0.5f); | |||||
| setBounds (component.getX(), component.getY() - height, component.getWidth(), height); | setBounds (component.getX(), component.getY() - height, component.getWidth(), height); | ||||
| } | } | ||||