Added recalculation of editor height depends on edito content and folding.