mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Quick view image
This commit is contained in:
parent
bb343eab50
commit
0afbdd55a3
1 changed files with 7 additions and 4 deletions
|
|
@ -2001,10 +2001,13 @@ begin
|
|||
// Update scrollbars
|
||||
// TODO: fix - calculations are correct but it seems like scroll bars
|
||||
// are being updated only after a second call to Form.Resize
|
||||
if (iLeft < 0) then
|
||||
sboxImage.HorzScrollBar.Position:= -iLeft;
|
||||
if (iTop < 0) then
|
||||
sboxImage.VertScrollBar.Position:= -iTop;
|
||||
if sboxImage.HandleAllocated then
|
||||
begin
|
||||
if (iLeft < 0) then
|
||||
sboxImage.HorzScrollBar.Position:= -iLeft;
|
||||
if (iTop < 0) then
|
||||
sboxImage.VertScrollBar.Position:= -iTop;
|
||||
end;
|
||||
|
||||
// Update status bar
|
||||
Status.Panels[sbpCurrentResolution].Text:= Format(fmtImageInfo, [iWidth,iHeight, 100.0 * dScaleFactor]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue