MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Please consider making the MathJax Zoomed Expression Dialog resizable via mouse/keyboard

Open brichwin opened this issue 6 months ago • 3 comments

Is your feature request related to a problem? Please describe. I'm working with a math professor to convert their materials from MathJax 2.7.x to MathJax 4. The professor loved how expression zoom worked in MathJax 2.7.x. In that version the zoomed version appears in an overlay and it is possible to see the entire expression at once: Image However, in MathJax 4 the zoomed expression appears in a dialog box that is not resizable. For many expressions, it is not possible to see the entire expression without performing horizontal/vertical scrolling within the dialog: Image

Describe the solution you'd like Please consider adding something like a grab handle (bottom right corner?) that makes the dialog resizable. Consider adding shortcut keys that grow/shrink the dialog's height and width. It might be useful to make the dialog draggable/moveable as well.

I mocked up a version of a movable and resizable Zoomed Expression Dialog. It's a hack, but models that it is possible.

The dialog title text can be clicked and dragged to move the dialog, the drag handle in the bottom right can be clicked and dragged to resize it. Also, it attempts to resize the dialog to fit the content. Since it runs after the dialog was rendered, you see a jump... that's a side effect of the hack-y bit.

Image

Describe alternatives you've considered None. The professor reluctantly moved to MathJax 4 after I gave him a bookmarklet that makes the Zoomed Expression dialog resizable.

Additional context Thanks for considering the request!

brichwin avatar Aug 14 '25 05:08 brichwin

I have made a PR (mathjax/MathJAx-src#1357) that implements sizable and movable dialogs, not just for the zoom box but for all dialogs. I see that you added keyboard commands as well, which mine doesn't currently have. I will think about adding that.

dpvc avatar Sep 25 '25 10:09 dpvc

I've added keyboard controls for sizing and moving the dialogs as well.

dpvc avatar Sep 25 '25 20:09 dpvc

Sweet! Thanks!!

brichwin avatar Sep 25 '25 21:09 brichwin