Properly calculate height of the mode line