I’m loading multiple documents within multiple iframes but only the iframe i have focused during loading sets the correct width.
The other iframes display the right bar beyond the iframe and the width is set more that the iframe width.
I have increased your trust level so you can post several screenshots in one post/reply.
Please provide screenshots for better understanding of the faced problem.
The user is essentially working on multiple documents at the same time and I want to reduce load times, so I want to preload the different documents and just hide / show the divs accordingly.
Those values were taken from looking at the content of the iframe after loading through the console. Those values are set by onlyoffice after the wopi request.
Could you provide a video demonstration of this scenario?
Note that Document Server will always go through the process of Opening the file even tough several editors are opened on the same page.
I’m quite confused. Do you mean that, for example, 2 separate editor frames are located on the same page and containing 2 different documents? If I’m mistaken please elaborate.
If your goal is to make width of both editors equal then try setting the same width for them in case both of your iframe elements also have the same width.
If you final goal is different, please describe it in details.
Yes thats correct there are multiple editor iframes each pointing to a different document. The user switches between them by hiding and showing the iframe.
I have tried to set the iframes to a fixed width but the issue still occurs that the content within the iframe that isn’t focused is set to a width beyond that of the iframe.
Please note that this topic is related to the width issues when using multiple editor iframes. It has nothing to do with tabbed UI, which is, by the way, is available in Desktop Editors.
Since your post differs from the original one and you did not specify any details about used product, please start a new topic with all necessary information for review.