summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTametomo <irarice@gmail.com>2009-10-16 12:03:09 -0600
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-14 22:32:15 +0100
commitf232498895d0c43a9e6308bd37f0ab3f68bea277 (patch)
treec16543101e96024c66835a6fc281e6c0cd3b3a9f
parentf23c6d7ad185c4e5ece4cf47710bd2e81d7ca254 (diff)
downloadmana-f232498895d0c43a9e6308bd37f0ab3f68bea277.tar.gz
mana-f232498895d0c43a9e6308bd37f0ab3f68bea277.tar.bz2
mana-f232498895d0c43a9e6308bd37f0ab3f68bea277.tar.xz
mana-f232498895d0c43a9e6308bd37f0ab3f68bea277.zip
Fixed browser links not properly resizing once the font size is changed.
They'd be in the correct position, just that the link length would always stay at the length of the original font. Signed-off-by: Tametomo <irarice@gmail.com>
-rw-r--r--src/gui/widgets/browserbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 78b16c84..5cc13b09 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -545,7 +545,7 @@ int BrowserBox::calcHeight()
if (c == '<')
{
- const int size = mLinks[link].x2 - mLinks[link].x1;
+ const int size = font->getWidth(mLinks[link].caption) + 1;
mLinks[link].x1 = x;
mLinks[link].y1 = y;
mLinks[link].x2 = mLinks[link].x1 + size;