[webkit-gtk] WebKitWebView initial viewport size

Michael Gratton mike at vee.net
Thu Oct 15 15:16:26 PDT 2020

Hi all,

I'm trying to fix <https://gitlab.gnome.org/GNOME/geary/-/issues/283> 
yet again and think I have tracked down the problem to the web 
process's viewport size being 0px x 0px when an email body is being 
loaded into a WebKitWebView, possibly when the WebKitWebView widget is 
either hidden or still being laid out by the widget hierarchy.

Can anyone say at what stage the web process's viewport size gets 
updated? Is there any way to influence it so that the width at least is 
valid, without resorting to hacks like generating and injecting custom 
CSS based on the parent widget's size?


Michael Gratton.

More information about the webkit-gtk mailing list