1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Fix for HyperlinkButton::changeWidthToFitText

This commit is contained in:
jules 2014-03-23 16:47:22 +00:00
parent e74698bed4
commit ca43af451a

View file

@ -74,7 +74,7 @@ Font HyperlinkButton::getFontToUse() const
void HyperlinkButton::changeWidthToFitText()
{
setSize (getFontToUse().getStringWidth (getName()) + 6, getHeight());
setSize (getFontToUse().getStringWidth (getButtonText()) + 6, getHeight());
}
void HyperlinkButton::colourChanged()