소스 검색

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
         I:= Bottom - Top; // TListBox.ItemHeight sometimes don't work under GTK2
         with FListBox do
         with FListBox do
         begin
         begin
+{$IF NOT DEFINED(LCLCOCOA)}
           if Items.Count = 1 then
           if Items.Count = 1 then
             FPanel.ClientHeight:= Self.Height
             FPanel.ClientHeight:= Self.Height
           else
           else
             FPanel.ClientHeight:= I * IfThen(Items.Count > 10, 11, Items.Count + 1);
             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;
       end;
     end;
     end;