After some debugging I have found that advanced-layout uses a default scale setting where it sets the reference screen size to 800x600 no matter what window size you set for your game. The solution is to create a new instance of Layout and Scale with proper width and height, then set the layout to our custom one. It didn't take me very long time to figure that out but I wish there was a thing about it in advanced-layout documentation so I could spend that time more productively.
