Could it be possible to change the algorithm for position 7 so that it's not
for I = 1,n
Window[I].top = i*(ScreenHeight/n+1) - Window[i].height/2
but instead
for I = 1,n
totalHeight += Window[I].height
first = Screenheight/2 - totalheight/2
Window[1].top = first
for I = 1,n-1
Window[I+1].top = Window[I].top + Window[I].height
The way the current positioning works, if you have 4 miniwindows. 1 positioned at 6 (top right), 1 at 8 (bottom right) and 2 at 7 (centered right side), the 2 centered ones can overlap the two corner ones with empty space in the middle.
for I = 1,n
Window[I].top = i*(ScreenHeight/n+1) - Window[i].height/2
but instead
for I = 1,n
totalHeight += Window[I].height
first = Screenheight/2 - totalheight/2
Window[1].top = first
for I = 1,n-1
Window[I+1].top = Window[I].top + Window[I].height
The way the current positioning works, if you have 4 miniwindows. 1 positioned at 6 (top right), 1 at 8 (bottom right) and 2 at 7 (centered right side), the 2 centered ones can overlap the two corner ones with empty space in the middle.