aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistbox.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-01-19 13:42:38 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-01-19 13:42:38 +0100
commit65d256dab9e29d50ab02d1d5bd6319ab8a50dc82 (patch)
treecc8cd94b91c2adc6184e16b4832501b5bfe0fece /lib/gui/elistbox.cpp
parent4621e2ba14ebc9c955e3bf669a5c8799f65f46e1 (diff)
downloadenigma2-65d256dab9e29d50ab02d1d5bd6319ab8a50dc82.tar.gz
enigma2-65d256dab9e29d50ab02d1d5bd6319ab8a50dc82.zip
round up when calculating scrollbar width
Diffstat (limited to 'lib/gui/elistbox.cpp')
-rw-r--r--lib/gui/elistbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp
index 5b05c028..e8a0dada 100644
--- a/lib/gui/elistbox.cpp
+++ b/lib/gui/elistbox.cpp
@@ -279,7 +279,7 @@ void eListbox::updateScrollBar()
if ((pages*m_items_per_page) < entries)
++pages;
int start=(m_top*100)/(pages*m_items_per_page);
- int vis=(m_items_per_page*100)/(pages*m_items_per_page);
+ int vis=(m_items_per_page*100+pages*m_items_per_page-1)/(pages*m_items_per_page);
if (vis < 3)
vis=3;
m_scrollbar->setStartEnd(start,start+vis);