adaptiveHeight works fine if run after setDimensions instead of onLoad