New UI toolWindow Anchor "top" no more compatible Follow Answered Alex Alex Created December 07, 2022 00:05 How to set toolWindow's anchor "Left Top" in plugin.xml only if "new ui" is enabled else give "top"
Please use `ToolWindowFactory.getAnchor` to return a custom anchor and `ExperimentalUI.isNewUI()` to check is New UI is enabled.
Please note — API is internal. Such customization is not recommended.
Hi thanks for your response.
The question is, how can I cover both cases? new ui and old ui compatibility for my toolwindow ?
If I use "new ui" then anchor="top" crashes
If I dont use "new ui" and I put anchor="Top Left" to plugin.xml attribute then it will crash
Of course I don't want to touch the internal api. Shouldn't there be a proper way to do it?