summaryrefslogtreecommitdiff
path: root/source/a/dialog/dialog.all.use_height.diff
blob: 9eb1952c7d06220f55f2736c17a7843a07fc80cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- ./menubox.c.orig	2019-11-10 19:41:15.000000000 -0600
+++ ./menubox.c	2019-12-06 13:16:39.400865476 -0600
@@ -433,7 +433,8 @@
      * After displaying the prompt, we know how much space we really have.
      * Limit the list to avoid overwriting the ok-button.
      */
-    all.menu_height = height - MIN_HIGH - cur_y;
+    if (all.menu_height + MIN_HIGH > height - cur_y)
+       all.menu_height = height - MIN_HIGH - cur_y;
     if (all.menu_height <= 0)
 	all.menu_height = 1;
 
--- ./buildlist.c.orig	2019-11-10 19:41:43.000000000 -0600
+++ ./buildlist.c	2019-12-06 13:16:39.402865476 -0600
@@ -653,7 +653,8 @@
      * After displaying the prompt, we know how much space we really have.
      * Limit the list to avoid overwriting the ok-button.
      */
-    all.use_height = height - MIN_HIGH - cur_y;
+    if (all.use_height + MIN_HIGH > height - cur_y)
+       all.use_height = height - MIN_HIGH - cur_y;
     if (all.use_height <= 0)
 	all.use_height = 1;
 
--- ./checklist.c.orig	2019-11-10 19:26:35.000000000 -0600
+++ ./checklist.c	2019-12-06 13:16:39.404865476 -0600
@@ -304,7 +304,8 @@
      * After displaying the prompt, we know how much space we really have.
      * Limit the list to avoid overwriting the ok-button.
      */
-    all.use_height = height - MIN_HIGH - cur_y;
+    if (all.use_height + MIN_HIGH > height - cur_y)
+       all.use_height = height - MIN_HIGH - cur_y;
     if (all.use_height <= 0)
 	all.use_height = 1;
 
--- ./treeview.c.orig	2019-11-10 19:38:22.000000000 -0600
+++ ./treeview.c	2019-12-06 13:17:35.604866677 -0600
@@ -291,7 +291,8 @@
      * After displaying the prompt, we know how much space we really have.
      * Limit the list to avoid overwriting the ok-button.
      */
-    use_height = height - MIN_HIGH - cur_y;
+    if (use_height + MIN_HIGH > height - cur_y)
+        use_height = height - MIN_HIGH - cur_y;
     if (use_height <= 0)
 	use_height = 1;