fixed accounting on layout height adjustment math