New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Fit to Text Width" does not update zoom when textwidth changes #1935
Comments
A popup like the one below will appear when the viewer is re-calculating text width: It steals the window focus so I couldn't keep working on the document. This is okay once in a while, but this happening after every rebuild is super annoying, especially when doing successive rebuilds (e.g. when tweaking a TikZ diagram). I hence propose that we either:
In fact, I would say that recalculating every time is unnecessary, since for most documents the width is more or less fixed. I have hence created a fork reverting this commit. This would of course generates a regression for @krzgvtrs. If you are okay with it, I can open a pull request and ask @sunderme to merge so that it becomes the default behavior. If not then I will keep this patch on my private branch. Personally I really really need the popup to go away because it has seriously affected my workflow. Sorry for the rambling. |
Environment
Expected behavior
If the option "Fit to Text Width" is marked, the zoom of the viewer should always be in consonance with the text width.
Actual behavior
If text width changes, the zoom keeps the same. The only way to make it update is to close and reopen texstudio or to change the viewer mode (from embedded to windowed or viceversa).
How to reproduce
Make a new document and write only a word. Compile and view. Then add a paragraph. Compile and view. The zoom in the preview does not adapt to the new text width.
Another way to reproduce is to have two documents with different margins and change the view from one to the other.
The text was updated successfully, but these errors were encountered: