AndroidLayout: provide default width and height

setLayoutParams()  will never be called on the contentView of the
Window. So make sure we have default values
This commit is contained in:
Julian Winkler
2023-11-08 18:05:59 +01:00
parent 603371ec9e
commit ac5a547360

View File

@@ -94,6 +94,8 @@ GtkLayoutManager *android_layout_new(jobject view)
{
AndroidLayout *layout = g_object_new(android_layout_get_type(), NULL);
layout->view = view;
layout->width = MATCH_PARENT;
layout->height = MATCH_PARENT;
return &layout->parent_instance;
}