Added the option mainDiv to specify a different selector for the tabs container.
Replaced the height calculation including also margins and paddings.