aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/ListBox.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-03-06 22:48:20 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-03-06 22:49:34 +0100
commitbf1c5457f87dbe1a30693f18c1599bd3fd1dd860 (patch)
tree07ff96c598722d82507cc1bf388aeb44b3caf6b8 /src/GraphicObjects/ListBox.cs
parentf6418d2a9219a63116ba706cbf54d8c0e8d88bff (diff)
divers
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
-rw-r--r--src/GraphicObjects/ListBox.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs
index 2257e62d..b6e17485 100644
--- a/src/GraphicObjects/ListBox.cs
+++ b/src/GraphicObjects/ListBox.cs
@@ -149,10 +149,13 @@ namespace Crow
//reset size to fit in the dir of the stacking
//because _list total size is forced to approx size
- if (_gsList.Orientation == Orientation.Horizontal)
+ if (_gsList.Orientation == Orientation.Horizontal) {
page.Width = -1;
- else
- page.Height = -1;
+ page.Height = 0;
+ } else {
+ page.Height = -1;
+ page.Width = 0;
+ }
for (int i = (pageNum - 1) * itemPerPage; i < pageNum * itemPerPage; i++) {