Further fixes #361 By also taking into account availLeft and availTop.
Further fixes #361
By also taking into account availLeft and availTop.

XenonApp/xenon,AaronZhangL/zed,XenonApp/xenon,matthiaskr/zed,AaronZhangL/zed,matthiaskr/zed,TheKiteEatingTree/zed,LuoZijun/zed,zedapp/zed,LuoZijun/zed,matejc/zed,matejc/zed,TheKiteEatingTree/zed,AaronZhangL/zed,matejc/zed,matthiaskr/zed,LuoZijun/zed,TheKiteEatingTree/zed,zedapp/zed,zedapp/zed