when I do windows resize like this
I want it to be in top right corner but always goes away from screen
I found workaround and split it in two parts first one resizes window and second moves it, it works but takes additional efforts