mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 01:57:16 +01:00
LCL carbon: fixed updating client rect if scrollbars changed
git-svn-id: trunk@14948 -
This commit is contained in:
parent
22a852a20c
commit
ae66f2b9db
@ -439,8 +439,7 @@ end;
|
||||
procedure TCarbonWidget.UpdateLCLClientRect;
|
||||
begin
|
||||
LCLObject.InvalidateClientRectCache(False);
|
||||
LCLSendSizeMsg(LCLObject, LCLObject.Width,
|
||||
LCLObject.Height, Size_SourceIsInterface);
|
||||
LCLSendSizeMsg(LCLObject, LCLObject.Width, LCLObject.Height, Size_SourceIsInterface);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
||||
@ -676,8 +676,6 @@ begin
|
||||
FTextFractional := True;
|
||||
|
||||
inherited;
|
||||
|
||||
UpdateLCLClientRect; // force update client rect
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
@ -820,6 +818,9 @@ begin
|
||||
end;
|
||||
DeliverMessage(LCLObject, ScrollMsg);
|
||||
|
||||
// scroll bars can change client rect - update it
|
||||
UpdateLCLClientRect;
|
||||
|
||||
OSError(
|
||||
HiViewSetNeedsDisplay(Widget, True), Self, 'ScrollTo', SViewNeedsDisplay);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user