Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-10 19:06:46 +0000
committerStijn Buys <ingar@osirion.org>2013-11-10 19:06:46 +0000
commit44be0ec7bd1306cf3f245d33d101d458f9d53486 (patch)
tree26f43ea90ea564d3b93304b4d0ef40fe555935fe /src
parentf009487bbe6120f8f487302f5e1bb4ae606a51af (diff)
Corrected a resize issue with reputation bars of the listview scrollbar appears.
Diffstat (limited to 'src')
-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;