Set and use implicitHeight instead of height
"height" is the effective value and this kind of use can result in binding loops and wrong results. Use implicitHeight instead to get correct and reliable calculations.
@fusionfuture Please give this a try, it appears to work here at least.