Cocoa: fix a bug in TCocoaWSCustomTabControl.ShowTabs()

This commit is contained in:
rich2014 2023-08-01 22:55:06 +08:00
parent 2935910bde
commit 5cb3f9d2c0

View File

@ -939,7 +939,7 @@ begin
ar := lTabControl.lclGetFrameToLayoutDelta;
// switching ShowTabs actually changes layout to frame
// this needs to be compenstated
if (ar.Top<>pr.Top) or (pr.Left<>ar.Top) then
if (ar.Top<>pr.Top) or (ar.Left<>pr.Left) then
begin
fr := lTabControl.frame;
dx := pr.Left - ar.left;