Weird spacing inside of tooltips

32 views
Skip to first unread message

Andrew Murdza

unread,
Oct 2, 2022, 8:06:21 PM10/2/22
to MathJax Users
After adding mtextInheritFont: true to tooltips I get extra spacing inside of the tooltips like the first picture.

There is also sometimes a lot of whitespace on the right like in the second picture

Now that Mathjax has line breaking, it is possible to do line breaking inside of mathtip (where I would specify the maximum width of the mathtip box)? I know it is inside of curly braces so maybe not. I have previously been adding // manually instead of using automatic line breaking because 4.0 wasn't out yet.
Screenshot 2022-10-02 194139.png
Screenshot 2022-10-02 193205.png

Andrew Murdza

unread,
Oct 22, 2022, 6:02:16 PM10/22/22
to MathJax Users
I was able to fix it by setting  mtextInheritFont to false. I thought this would make the text inside of the equations have a bigger font size than the surrounding text but this I'm this did not happen. Maybe this is because of the Mathjax 4.0 update.

Davide Cervone

unread,
Oct 27, 2022, 5:14:03 PM10/27/22
to mathja...@googlegroups.com
The tooltip uses CSS to scale down the tip size, and apparently that isn' being taken into account when the tooltip size is computed.  That is a bug.  I will make an issue tracker for it.  Thanks for reporting the issue.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/f1ad2422-4cc7-4cb5-9592-2714f8a20c49n%40googlegroups.com.
<Screenshot 2022-10-02 194139.png><Screenshot 2022-10-02 193205.png>

Andrew Murdza

unread,
Oct 27, 2022, 6:42:15 PM10/27/22
to MathJax Users
Hey Davide,

Thanks for replying to my message. I noticed that you replied to all of the recent messages except two older messages: one of them is by me here: https://groups.google.com/g/mathjax-users/c/i8BecekIoDI

This question is really important to me so I really hope you didn't miss it or forget about it. Even if it takes a some more weeks it would be really awesome if you could answer my question because it is a big deal for me.

Davide Cervone

unread,
Oct 27, 2022, 7:37:40 PM10/27/22
to mathja...@googlegroups.com
I haven't forgotten, I just ran out of time.  I will get to more when I can.  I was going backward chronologically (how they are in my mailbox).

Davide


Andrew Murdza

unread,
Oct 27, 2022, 7:38:23 PM10/27/22
to MathJax Users
Awesome thanks so much
Reply all
Reply to author
Forward
0 new messages