[gimp] Bug 786840 - Selecting last option in file association list ...



commit a44ef8e8666dbc92a6152f469f1704c8e1c10a55
Author: Ell <ell_se yahoo com>
Date:   Mon Oct 23 08:46:36 2017 -0400

    Bug 786840 - Selecting last option in file association list ...
    
    ... makes the list scroll down and select the next item
    
    Adjust the file association list height to be a multiple of the
    item height, to avoid this issue.

 build/windows/installer/gimp3264.iss |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/build/windows/installer/gimp3264.iss b/build/windows/installer/gimp3264.iss
index 5eab918..6421d9c 100644
--- a/build/windows/installer/gimp3264.iss
+++ b/build/windows/installer/gimp3264.iss
@@ -708,6 +708,13 @@ begin
                TabOrder := 1;
                Flat := True;
 
+                // the box's height, minus the 2-pixel border, has to be a
+                // multiple of the item height, which has to be even, otherwise
+                // clicking the last visible item may scroll to the next item,
+                // causing it to be toggled.  see bug #786840.
+                MinItemHeight := ScaleY(16) / 2 * 2;
+                Height := (Height - 4) / MinItemHeight * MinItemHeight + 4;
+
                Associations.AssociationsPage.lblAssocInfo2.Top := Height + Top;
 
                OnClick := @Associations_OnClick;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]