-
I found that there are two hidden elements placed in the body tag (and therefore outside the 'theia-app-shell' portion) of my website showing a GLSP diagram: I imagine the second one is used for context menus and other popups. original thread by hoelzl-florian |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, this hidden div is used in the |
Beta Was this translation helpful? Give feedback.
-
For more details you can have a look at the documentation: |
Beta Was this translation helpful? Give feedback.
Hi, this hidden div is used in the
hidden rendering phase
of sprotty. The size of some diagram elements can't be derived on the server side and depends on the locally used fonts and CSS classes. Therefore, sprotty/glsp has a precomputation step consing of aRequestBoundsAction
and a response in the form ofComputedBoundsAction
which renders the model in an invisible div to derive the actual bounds.