Writer: Dynamic zoom

Hello,

Creating here a new topic to discuss the - current in development - dynamic zoom.

Context: Defaults matter but - ideally - they would be also flexible, aware of current user’s context. At the moment, by default we set the document zoom to 100% which often doesn’t match user expectations. Changing this value to yet another static number - that doesn’t depend on available space - wouldn’t be the best approach. We need a dynamic zoom value for when a user opens a document.

For now this is only being develop for text documents.

Pull request: [wip] set max possible zoom on the document by printfdebugging · Pull Request #13801 · CollaboraOnline/online · GitHub

2026-01-09 Meeting : Sahil and Pedro

Pedro said: I see multiple context changes (zoom changing without user input whenever there a sidebar is triggered). We should at least make sure that the dynamic zoom doesn’t get called when the user opens the navigation sidebar or any other sidebar


2026-01-15 Meeting: @printfdebugging , @eszkadev , @pedropintosilva

Pedro: to reiterate what I said before. Let’s do the simple thing first and assume less, better to wait for user feedback instead of calling dynamic zoom everywhere.

  • We want to avoid drastic context changes (zoom having its on life, “being controlled by some sorcery”) .
  • We want to call dynamic zoom a single time on load, after we know the window size and the available space; After that we shouldn’t try to be smart and instead have a nice button (both on status bar and on tab “View”) label or with the tooltip “Fit zoom to page width” and that allows user to manually trigger the dynamic zoom

Szymon: Yes this will be better

Sahil: So, I will put the code in a sparated funciton

Szymon & Pedro:

  • Yes so we can use it for the button
  • Yes better for when doing cypress test so, we can call it easy AND for the typescript conversion etc

@printfdebugging please for now don’t merge this against main (at least not before week 8) and instead develop it against a feature/dynamic-zoom