Dynamic layout calculated from windows.width and height, redraw and orientation events