mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Viewer - dribbling of lowest line when window height is resized (fixes #652)
This commit is contained in:
parent
5fdcad2fec
commit
35498b579e
1 changed files with 2 additions and 2 deletions
|
|
@ -547,7 +547,7 @@ procedure Register;
|
|||
implementation
|
||||
|
||||
uses
|
||||
LCLType, Graphics, Forms, LCLProc, Clipbrd, LConvEncoding,
|
||||
Math, LCLType, Graphics, Forms, LCLProc, Clipbrd, LConvEncoding,
|
||||
DCUnicodeUtils, LCLIntf, LazUTF8, DCOSUtils , DCConvertEncoding
|
||||
{$IF DEFINED(UNIX)}
|
||||
, BaseUnix, Unix, DCUnix
|
||||
|
|
@ -1923,7 +1923,7 @@ end;
|
|||
function TViewerControl.GetClientHeightInLines: Integer;
|
||||
begin
|
||||
if FTextHeight > 0 then
|
||||
Result := GetViewerRect.Height div FTextHeight
|
||||
Result := Ceil(GetViewerRect.Height / FTextHeight)
|
||||
else
|
||||
Result := 0;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue