bugfix: on very first onLayout width of main layout was calculated incorrectly