Fixed: incorrect height calculation

The new panel height calculation should not include padding and border.