On Dec 4, 10:07 am, xirurg <vshala...@hotmail.com> wrote:
> I'm having a problem with jScrollPane. Take a look 
> onhttp://www.cmt.ca/unstable/- photo gallery on the right.
> It loads the whole list first and then limits it to certain width. So my
> question is - is is possible to eliminate that effect when user sees whole
> list for a while.

Well, since this section doesn't work well without Javascript, you
could limit the size in CSS, then override that with JS.  Perhaps:

ul.unstable_photoWidth {
    width: 335px;
    height: 65px;
    overflow: hidden;
}

then somewhere after load but before your scroll pane code, add

    $("ul.unstable_photoWidth").css({width: 85 * $("li", this).size(),
overflow: "auto"});

That might do it...

Good luck,

  -- Scott

Reply via email to