factored out barHeightProperty