From ee669bbd95401dd8cd194524d9ce8d739c2b98e5 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Tue, 20 Oct 2020 16:04:14 +0000 Subject: [PATCH] spkToolbar: Fix dimensions when the toolbar is in a frame rather than a form. Issue #37961. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7786 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/spktoolbar/SpkToolbar/SpkToolbar.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/spktoolbar/SpkToolbar/SpkToolbar.pas b/components/spktoolbar/SpkToolbar/SpkToolbar.pas index 3fd953f19..f9a489bd4 100644 --- a/components/spktoolbar/SpkToolbar/SpkToolbar.pas +++ b/components/spktoolbar/SpkToolbar/SpkToolbar.pas @@ -647,7 +647,7 @@ begin //todo: not found in lcl //inherited AlignWithMargins:=true; - if (AOwner is TForm) then + if (AOwner is TForm) or (AOwner is TFrame) then SpkInitLayoutConsts(96); // This default dpi value is ignored for LCL scaling // Height := CalcToolbarHeight;