astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
613 stars 65 forks source link

set iframe size on focus using deprecated DOM access #743

Closed jorsn closed 5 months ago

jorsn commented 1 year ago

Problem: iframe size is not set when a message is viewed, but only when the focus is changed after that (e.g. I open a message, it is small. Then, i type 'j'/'k' and it is correctly sized.)

Question: Can we call the function from some code which is called always when a message is viewed?

gauteh commented 9 months ago

If you want to call this when a message is focused you can use this: https://github.com/astroidmail/astroid/blob/master/src/modes/thread_view/webextension/tvextension.cc#L1781, or maybe you want https://github.com/astroidmail/astroid/blob/master/src/modes/thread_view/webextension/tvextension.cc#L1696 ?