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

recreate #7

Open
ghost opened this issue Jun 9, 2011 · 6 comments
Open

recreate #7

ghost opened this issue Jun 9, 2011 · 6 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2011

hi, how i can recreate scrollbar on ajax response so onchange div height ?

@j0b0sapi3n
Copy link

I'd like to know about this too. (This issue would probably benefit from being more descriptively named)

@miguelpeixe
Copy link

that would be awesome... my div has relative height and i'm trying to redo the function on resize event, but nothing

@thomd
Copy link
Owner

thomd commented Aug 29, 2011

Please provide an example. Which div do you mean? What di you mean by relative height?

I've added a "repaint"-method which can be called right after a insertion of dynamic content (e.g. via ajax). Does this help?

I'm going to add some examples and a better documentation soon.

@miguelpeixe
Copy link

eg:

$(window).resize() {

var srollableHeight = $(window).height() / 2;

$(".scrollable").height(scrollableHeight);

$(".scrollable").scrollable();

}

each time the window is resized the function is recalled to readjust to the new height, but nothing happens, it doesn't redefine scrolling settings

@miguelpeixe
Copy link

in the example above i could fix defining 50% height on the css, but in my case I have other variables working to define the height (just to state that I really need to use jquery's resize event to reset my div's height)

@tsukasa1989
Copy link

To fix the scrollbar-handle-container, add the following code to the start of the setHandle function

// Reset scrollbar-handle-container
        this.props.containerHeight = this.container.height();
        this.handleContainer.css({
            'height':   (this.props.containerHeight - this.handleArrowUp.outerHeight(true) - this.handleArrowDown.outerHeight(true)) + '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

4 participants