Question about #Phosh and OSK:
I have a #Relm4 (GTK4+adwaita) application. I recently migrated from gtk::Dialog to adw::Dialog and now i have the following behavior:
I open the app and open a dialog, which itself renders for about 45% of my screen height, with the Confirm button being at around 20% of the screen height. If i pop up the OSK, the dialog gets moved 5% upwards and the Confirm button is now covered by the OSK.
The app itself is not resized (for example GNOME software is).
1/2

Follow

@chfkch I think it's a matter of setting `content-height`, e.g.

+ <property name="content-height">400</property>

should make it "movable". Basically the content height needs to be low enough to fit the screen when the OSK is shown.

Idk if that's the currently best solution as the dialog then also doesn't take full height on large screens.

@agx YES! that is it. I think i have to tweak the numbers a bit and test it on different devices/screen sizes, but at least i can click the button again.

@agx I think it might be a good workaround but not the final or sole solution. Now the Dialog is visible enough, but i think the root cause (the app is not resized) still exists. But right now i will live with this working solution and maybe investigate other apps, which are working more closely.
Thanks for the very fast solution!

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml