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;