dboxinfo: fix partition size display

Origin commit data
------------------
Commit: 8946c6ebf8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-05 (Sun, 05 Jan 2014)
This commit is contained in:
Stefan Seyfried
2014-01-05 18:34:51 +01:00
parent 16942ab183
commit 736d0c47f0

View File

@@ -4,7 +4,7 @@
Copyright (C) 2001 Steffen Hehn 'McClean' Copyright (C) 2001 Steffen Hehn 'McClean'
Homepage: http://dbox.cyberphoria.org/ Homepage: http://dbox.cyberphoria.org/
(C) 2009-2011, 2013 Stefan Seyfried (C) 2009-2011, 2013-2014 Stefan Seyfried
Kommentar: Kommentar:
@@ -559,6 +559,7 @@ void CDBoxInfoWidget::paint()
int rw = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp, true); int rw = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp, true);
maxWidth[column] = std::max(maxWidth[column], rw); maxWidth[column] = std::max(maxWidth[column], rw);
space = widths[column] - rw; space = widths[column] - rw;
_w = rw;
} }
if ((mpOffset + space + _w) > width) if ((mpOffset + space + _w) > width)
_w = width - (mpOffset + space); _w = width - (mpOffset + space);