TL;DR
UI improvements, changing the location of dialogs to the center of the screen: DO NOT overlap the top buttons bar.What ?
Now, when a new dialog opens in the center of the window, the current location is calculated like this:Ypos := ( {Window Height} - {Quickbar Height} - {New Dialog Height} ) / 2
Sometimes, when a new dialog is tall enough, it causes the buttons on the top bar to overlap when opened in the center of the screen. Many mods add their activation buttons to the top bar, so the current logic of selecting the dialog position in the center of the screen becomes inconvenient for those who play with mods (which is most of those who play factorio for a long time).
I'd like to propose a new logic. Since the panel with buttons at the top always goes in one row of buttons, let's take into account its height:
Ypos := ( {Window Height} - {Quickbar Height} - {Top Buttons Bar Height} - {New Dialog Height} ) / 2
Why ?
Because of this, the new dialog frame will avoid overlapping the top button bar in most cases.For example, there are many mods that somehow interact with an open player's or chest inventory dialog, add buttons to the top bar, and expect the player to press them when the inventory dialog is OPEN. These dialogs open just in the center of the screen.