[webkit-gtk] WebKitWebView initial viewport size
Carlos Garcia Campos
cgarcia at igalia.com
Fri Oct 23 01:42:21 PDT 2020
El vie, 16-10-2020 a las 09:16 +1100, Michael Gratton escribió:
> 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?
Do you mean the viewport size or the contents size? In the geary bug I
think the problem is scrollHeight, no?
> Thanks,
> //Mike
>
--
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20201023/8f984663/attachment.bin>
More information about the webkit-gtk
mailing list