mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 16:59:20 +02:00
Gtk: statictext widget must set usize in case of new autosize. fixes #16127
git-svn-id: trunk@24247 -
This commit is contained in:
parent
10df69f897
commit
0c98e064f9
@ -1518,6 +1518,9 @@ begin
|
||||
WidgetInfo^.CoreWidget := EventBox;
|
||||
gtk_object_set_data(PGtkObject(EventBox), 'widgetinfo', WidgetInfo);
|
||||
|
||||
{$IFNDEF OldAutoSize}
|
||||
gtk_widget_set_usize(PGtkWidget(Result), AParams.Width, AParams.Height);
|
||||
{$ENDIF}
|
||||
Allocation.X := AParams.X;
|
||||
Allocation.Y := AParams.Y;
|
||||
Allocation.Width := AParams.Width;
|
||||
|
Loading…
Reference in New Issue
Block a user