Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/reputationwindow.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/reputationwindow.cc b/src/client/reputationwindow.cc
index 3566458..08cbb19 100644
--- a/src/client/reputationwindow.cc
+++ b/src/client/reputationwindow.cc
@@ -38,7 +38,17 @@ public:
bar_reputation = reputation;
}
-protected:
+protected:
+
+ virtual void resize()
+ {
+ if (parent()) {
+ // small hack to keep the bars aligned within the listviewitem if the listview scrollbar appears/dissapears
+ const float padding = ui::root()->font_large()->height();
+ set_width(parent()->width() - padding);
+ }
+ }
+
virtual void draw()
{
const float box_padding = 4.0f;