LCL: gtk2: GetGTKDefaultWidgetSize: ignore client area with child controls

git-svn-id: trunk@47897 -
This commit is contained in:
mattias 2015-02-19 11:41:15 +00:00
parent ed741045b4
commit b04540dbcd

View File

@ -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