From 8bdb1bd4d4e4931e4841faa73656c8fc6e7e2fb3 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Tue, 20 Oct 2020 16:09:14 +0000 Subject: [PATCH] spkToolbar: A more general solution to issue #37961 than r7786 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7787 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 f9a489bd4..c2350c758 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) or (AOwner is TFrame) then + if (AOwner is TCustomDesignControl) then // form or frame SpkInitLayoutConsts(96); // This default dpi value is ignored for LCL scaling // Height := CalcToolbarHeight;