diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-06 22:48:20 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-06 22:49:34 +0100 |
| commit | bf1c5457f87dbe1a30693f18c1599bd3fd1dd860 (patch) | |
| tree | 07ff96c598722d82507cc1bf388aeb44b3caf6b8 /src/GraphicObjects/ListBox.cs | |
| parent | f6418d2a9219a63116ba706cbf54d8c0e8d88bff (diff) | |
divers
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
| -rw-r--r-- | src/GraphicObjects/ListBox.cs | 9 |
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++) { |