UniStuttgart-VISUS / damast

Code for the DH project "Dhimmis & Muslims – Analysing Multireligious Spaces in the Medieval Muslim World" (VolkswagenFoundation)
MIT License
10 stars 1 forks source link

It seems impossible to drag the last view in a GoldenLayout stack somewhere else #233

Closed mfranke93 closed 3 months ago

mfranke93 commented 4 months ago

Probably caused by the recent GoldenLayout version upgrade.

mfranke93 commented 3 months ago

Ultimately, this seems to be caused by the components themselves not being closable. Removing the isClosable: false from the configuration, and using the new root property instead of the components property in the config, solves this issue. However, views are now closable.

The solution is simple, but a bit ugly. However, I see no good alternative. I had no success intercepting the close events reliably, so my proposed solution is to hide the close buttons and make them not clickable:

.lm_header .lm_close_tab {
  visibility: hidden;
  pointer-events: none;
}