Hello,
I am having trouble configuring a GtkListBoxRow to vertically expand to the maximum height allowed (or left) in it’s parent widget (GtkListBox) (which expands vertically perfectly fine).
I opened GTK Inspector and captured the window while the GtkListBoxRow was hightlighted:
I have tried using the vexpand and vexpand-set properties of the widget to achieve the behavior I want, but it does not seem to follow. I have also made sure that the parent widgets also allow vexpand so as to not limit the GtkListBoxRow widget from expanding.
Removing the height-request property from GtkListBoxRow only results in the Widget collapsing to a tiny height with the entire AdwPreferencesPage in a GtkScrolledWindow.
The source code for my project is available below:
Got it. In that case, my question is why does the content inside AdwPreferencesView not expand its widget, and instead leads to a small scrolled window?I am new to widget toolkits in general, so I may be missing something.
of the text inside the page. It is the minimum height, but that height is dynamic. Moreover, it also changes depending on width, since the text can wrap.
Ah, GtkBox is the widget I need to replace my GtkListBox with. I assumed GtkBox only aligned widgets horizontally for some reason. Using this fixed my issue. Thank you very much! I appreciate your help.
Currently GTK4 has an issue on mobile devices (afaik Danctnix ALARM + Phosh, but not sure about other mobile platform distributions) where additional windows, such as dialogs, fail to fully render on the screen making them unusable.
I thought, just as a precaution for the future and current state of mobile, to keep the preferences view in the main window without having to render a dialog or popup.