Преглед на файлове

UDP: COCOA: more suitable ClientHeight of autocomplete window (#592)

rich2014 преди 3 години
родител
ревизия
135eff3413
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      components/KASToolBar/kaspathedit.pas

+ 4 - 0
components/KASToolBar/kaspathedit.pas

@@ -259,10 +259,14 @@ begin
         I:= Bottom - Top; // TListBox.ItemHeight sometimes don't work under GTK2
         with FListBox do
         begin
+{$IF NOT DEFINED(LCLCOCOA)}
           if Items.Count = 1 then
             FPanel.ClientHeight:= Self.Height
           else
             FPanel.ClientHeight:= I * IfThen(Items.Count > 10, 11, Items.Count + 1);
+{$ELSE}
+          FPanel.ClientHeight:= I * IfThen(Items.Count > 10, 11, Items.Count + 1) + trunc(i/2);
+{$ENDIF}
         end;
       end;
     end;