Dynamic scroll pane height

43 views
Skip to first unread message

Vladan Jocic

unread,
Dec 2, 2009, 10:27:02 AM12/2/09
to jscrollpane
Hi,

Can I change scroll pane height by js?

something like:
$('.#pane1).css('height','250px');

??

Thanks,
Vladan

Kelvin Luck

unread,
Dec 8, 2009, 6:12:14 AM12/8/09
to jscro...@googlegroups.com
Hi,

Yes you can. Just remember to reinitialise the jScrollPane afterwards...

Cheers,

Kelvin :)

On Wed, 02 Dec 2009 15:27:02 -0000, Vladan Jocic <vladan...@gmail.com>
wrote:
> --
>
> You received this message because you are subscribed to the Google
> Groups "jscrollpane" group.
> To post to this group, send email to jscro...@googlegroups.com.
> To unsubscribe from this group, send email to
> jscrollpane...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jscrollpane?hl=en.
>
>

Vladan Jocic

unread,
Dec 8, 2009, 4:14:29 PM12/8/09
to jscro...@googlegroups.com
Hi,

I try something like this:

function changeD(){
//
$('#pane1').css("height", "400px");
$('#pane1').jScrollPane({showArrows:true});
}

$(function()
{
$('#pane1').jScrollPane({showArrows:true});
});

but without success :(

You can look my test code here:
http://z-productions.ch/test.html

Sorry because I bother you.

Kelvin Luck

unread,
Dec 9, 2009, 5:09:25 AM12/9/09
to jscro...@googlegroups.com
Hi,

Try:

function changeD()
{
$('#pane1').jScrollPaneRemove().css('height',
'400px').jScrollPane({showArrows:true});
}

Hope it helps,

Kelvin :)

On Tue, 08 Dec 2009 21:14:29 -0000, Vladan Jocic <vladan...@gmail.com>

WibiMaster

unread,
Dec 9, 2009, 3:00:14 AM12/9/09
to jscrollpane
Hello,

I've got the same problem.. I can resize the container, but not the
"pane1" :/

The container is an absolute Div with "top: 0" and "bottom: 0", I've
got its height with innerHeight, and I define a function "onresize",
but it doesn't work for the Pane1..
Maybe can you write us a very little example, if you have the time ?
(Sorry for bad english)

You've make a wonderful work ;) !



On 8 déc, 22:14, Vladan Jocic <vladan.jo...@gmail.com> wrote:
> Hi,
>
> I try something like this:
>
>             function changeD(){
>                 //
>                 $('#pane1').css("height", "400px");
>                 $('#pane1').jScrollPane({showArrows:true});
>             }
>
>             $(function()
>             {
>                 $('#pane1').jScrollPane({showArrows:true});
>             });
>
> but without success :(
>
> You can look my test code here:http://z-productions.ch/test.html
>
> Sorry because I bother you.
>
> > Hi,
>
> > Yes you can. Just remember to reinitialise the jScrollPane afterwards...
>
> > Cheers,
>
> > Kelvin :)
>
> > On Wed, 02 Dec 2009 15:27:02 -0000, Vladan Jocic <vladan.jo...@gmail.com>  

WibiMaster

unread,
Dec 9, 2009, 4:07:57 AM12/9/09
to jscrollpane
Sorry for double-post, by I solve my problem, in the JS file I wrote

{'className':'jScrollPaneContainer'}
).css(
{
'height':'100%',

lines 75-78, and it works for me :)
Reply all
Reply to author
Forward
0 new messages