Better height calculation for editor in page builder