summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-17 20:18:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-17 20:18:42 +0300
commitea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a (patch)
treec7eda5a55a8dda69b904ff136a6344312fe2436f /src
parent934fdc4164fa70e635ac08ad548418b04e4b2f6c (diff)
downloadplus-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.tar.gz
plus-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.tar.bz2
plus-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.tar.xz
plus-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.zip
Fix width in browserbox if padding non standard.
Diffstat (limited to 'src')
-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 2d9202805..79de4f8ef 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -320,7 +320,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
// Adjust the BrowserBox size
const int w = startBold ?
- boldFont->getWidth(plain) : font->getWidth(plain);
+ boldFont->getWidth(plain) : font->getWidth(plain) + 2 * mPadding;
if (w > getWidth())
setWidth(w);
}