https://bugs.documentfoundation.org/show_bug.cgi?id=103641
--- Comment #12 from Pranav Kant <[email protected]> ---
(In reply to Aleksander Machniak from comment #9)
> And I have another problem that I don't know how to fix/workaround. When
> posting Get_Export_Formats message (properly after receiving
> App_LoadingStatus) I don't get the response. In console I see
>
> TypeError: this._map._docLayer is undefined
>
> Maybe some race condition?
Another problem here is that view information (number of users editing the
document; their color, names etc.) is available only after document load
finishes and currently App_LoadingStatus is emitted before that (when frame
becomes ready) which means you can't send 'Get_Views' command (as opposed to
what WOPI expects I guess) until document is loaded.
There are two possible solutions
1. We can delay the App_LoadingStatus to emit after document is loaded, but
then you won't be seeing any loleaflet's spinner till document is fully loaded
and all tiles are visible. We only have a rotating spinner as of now, but we
will have a progress bar there in future showing % of document load which can
be quite useful information to show to the user (especially for large
documents).
2. We can keep App_LoadingStatus before document load (in its current form) but
add a new post message API - 'Document_Loaded' that tells outer frame that it
can now use 'Get_View'
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs