mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-14 07:54:55 +01:00
A popup begun outside any window, as the context menus of the editor, the dialogs for a new scenery and for opening one and the pause dialog of the driver are, takes no viewport from a parent. It was put into the main window only where it merged there: with the main window minimized, or behind a panel taken out into a window of its own, it got a window of the system of its own, with an OpenGL context of its own, the way the editor froze. With io.ConfigViewportsNoAutoDetach the tooltips and popups stay in the main window there too. The comment of io.ConfigViewportsNoAutoDetach tells how they're placed: as with the viewports off, not shrunk. io.ConfigTooltipsWrapWidth moves to the miscellaneous options, it works with the viewports off as well, and its comment tells that SetItemTooltip() wraps too and BeginTooltip() doesn't.