diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp index 675d8eb92..9d0d994f7 100644 --- a/src/gui/dboxinfo.cpp +++ b/src/gui/dboxinfo.cpp @@ -90,6 +90,7 @@ int CDBoxInfoWidget::exec(CMenuTarget* parent, const std::string &) COSDFader fader(g_settings.menu_Content_alpha); fader.StartFadeIn(); + sizeWidth = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth("1023,99 MiB"); paint(); frameBuffer->blit(); @@ -208,9 +209,8 @@ void CDBoxInfoWidget::paint() const int headSize = 5; const char *head[headSize] = {"Filesystem", "Size", "Used", "Available", "Use"}; int fontWidth = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getWidth(); - int sizeWidth = fontWidth * 11;//9999.99 MiB int percWidth = fontWidth * 4 ;//100% - int nameWidth = fontWidth * 17;//WWWwwwwwww + int nameWidth = fontWidth * 10;//WWWwwwwwww mountpoint, will auto-extend height = hheight; height += mheight/2; // space height += mheight; // time diff --git a/src/gui/dboxinfo.h b/src/gui/dboxinfo.h index 4a8cc52ee..d52b688c6 100644 --- a/src/gui/dboxinfo.h +++ b/src/gui/dboxinfo.h @@ -48,6 +48,7 @@ class CDBoxInfoWidget : public CMenuTarget int height; int hheight,mheight; // head/menu font height unsigned long stat_total, stat_idle; + int sizeWidth; // width of mem / disk sizes void paint();