mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 05:19:25 +02:00
LCL: gtk2: GetGTKDefaultWidgetSize: ignore client area with child controls
git-svn-id: trunk@47897 -
This commit is contained in:
parent
ed741045b4
commit
b04540dbcd
@ -6424,7 +6424,9 @@ begin
|
||||
' PreferredWidth=',PreferredWidth,' PreferredHeight=',PreferredHeight,
|
||||
' WithThemeSpace=',WithThemeSpace]); }
|
||||
|
||||
if GtkWidgetIsA(Widget,GTK_TYPE_EVENT_BOX) then begin
|
||||
if GtkWidgetIsA(Widget,GTK_TYPE_EVENT_BOX)
|
||||
and (AWinControl.ControlCount>0) then begin
|
||||
// ignore client area (child controls)
|
||||
FixedWidget:=PGtkWidget(GetFixedWidget(Widget));
|
||||
if FixedWidget<>nil then begin
|
||||
{if AWinControl.Name='OtherInfoGroupBox' then
|
||||
|
Loading…
Reference in New Issue
Block a user