Commit a44ef8e8 authored by Ell's avatar Ell

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.
parent 78aff4dd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment