Oh, the Dock. Try to have a setup where you have two displays vertically, BUT you want the Toolbar and Dock both be on the top one, stably - impossible.
Workaround I found: you can configure the monitors to be a pattern like this instead:
1
2
touching only in the corner. Then it works, the Dock is on monitor 1.