Skip to content

Fix for IE7: Under certain circumstances, measurement of content height fails #15

@isrob

Description

@isrob

Was tearing my hair out when container.contentHeight was always returning 0 on IE7, and therefore the scrollbar was never being drawn (as 0 is always less than the container height).

This line fixes it, within $.fn.scrollbar.contentHeight:

var height = wrapper.css({overflow:'hidden', zoom:'1'}).height();

(note the addition of the 'zoom' parameter to force hasLayout on the wrapper element.

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