From f232498895d0c43a9e6308bd37f0ab3f68bea277 Mon Sep 17 00:00:00 2001 From: Tametomo Date: Fri, 16 Oct 2009 12:03:09 -0600 Subject: 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 --- src/gui/widgets/browserbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2