GTK3: Improved initial size of created windows by setting constraints.

This commit is contained in:
Abou Al Montacir 2023-12-09 13:30:41 +01:00
parent c164ac032c
commit fb3002163e

View File

@ -7573,6 +7573,7 @@ begin
// cannot gtk_widget_realize(Result), because that needs a valid widget parent
FWidgetType := [wtWidget, wtLayout, wtScrollingWin, wtCustomControl]
end;
Result^.set_size_request(Params.Width, Params.Height);
FBox := TGtkVBox.new(GTK_ORIENTATION_VERTICAL, 0);