Skip to content

Height behavior of tab-content div #16

@evbrew

Description

@evbrew

Height of tab div (class "tab-content") does not auto adjust if content dynamically changes.
There should be an API method at least to trigger a height refresh on current tab.
e.g.
$('#smarttab').smartTab("refreshHeight");

Also I would also expect the option "autoAdjustHeight: false" to not set an explicit CSS height on the tab and let it adjust for content, but it appears to set the height based on the first tab's content instead.

I worked around the issue with the following CSS override:
.st>.tab-content {
height: fit-content!important;
}

Windows10 Chrome 94.0.4606.81

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions