summaryrefslogtreecommitdiff
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
parent934fdc4164fa70e635ac08ad548418b04e4b2f6c (diff)
downloadmv-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.tar.gz
mv-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.tar.bz2
mv-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.tar.xz
mv-ea09e09fc8e00d0c8a39306d7dc4b3f0d2830b9a.zip
Fix width in browserbox if padding non standard.
-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);
}