Condition for sidebar height