How to reset position of “Elements” and “Command” windows in the edit formula mode (LibreOffice Writer)?

I have splitted the main window and two another tool-windows, but now i cant force them to go back :frowning:

Hold down Ctrl-key and double-click into the small gray border directly beneath its title bar. The active area is small, so you might need to try it several times.