Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No css formatting when rows height less than scroll height #5

Open
colmmitchell-payroc opened this issue Jul 27, 2011 · 1 comment
Open

Comments

@colmmitchell-payroc
Copy link
Contributor

Using the source inside GitHub, when the number of rows displayed doesn't enable the scroll bar, it also fails to enable the CSS formatting. The reason for this (as pointed out by Larry Woods' comment on February 4, 2011 at 7:49 pm) is that the code has this entry which doesn't seem to be working correctly:

    // Bail out if there's no vertical overflow
    if ($(this).height() <= settings.height)
    {
      return this;
    }

If these rows are commented out it appears to work well.

@TheCodingGorilla
Copy link

I've tweeked the code another way to display the CSS, however without the Scroll Bar the main table keeps room for the Scroll Bar.

I've adpated the above code to resolve the issue.

if ($(this).height() <= settings.height)
{
wrapper.css({width:(width)+'px'});
} else {
wrapper.css({width:((width-diff)+settings.scrollbarWidth)+'px'});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants