mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 12:09:25 +02:00
GTK3: Improved initial size of created windows by setting constraints.
This commit is contained in:
parent
c164ac032c
commit
fb3002163e
@ -7573,6 +7573,7 @@ begin
|
|||||||
// cannot gtk_widget_realize(Result), because that needs a valid widget parent
|
// cannot gtk_widget_realize(Result), because that needs a valid widget parent
|
||||||
FWidgetType := [wtWidget, wtLayout, wtScrollingWin, wtCustomControl]
|
FWidgetType := [wtWidget, wtLayout, wtScrollingWin, wtCustomControl]
|
||||||
end;
|
end;
|
||||||
|
Result^.set_size_request(Params.Width, Params.Height);
|
||||||
|
|
||||||
FBox := TGtkVBox.new(GTK_ORIENTATION_VERTICAL, 0);
|
FBox := TGtkVBox.new(GTK_ORIENTATION_VERTICAL, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user