?
Solved

JS Scroll Pane

Posted on 2012-04-02
9
Medium Priority
?
492 Views
Last Modified: 2012-04-23
I'm using JS Scroll Pane on a website.  The scroll works fine, gut If a place a menu that has named links, so you can jump to a specific part of the menu, the div moves up about 25 pixels and the slidebar disappears.

Here is a link:
goto:menu and you will see what I mean.

EXPERTS ONLY Please!
http://www.redthesteakhouse.com/development/index.php/miami
0
Comment
Question by:rgranlund
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37800540
Can you change

$('a.panel').click(function () {
  $('a.panel').removeClass('selected');
  $(this).addClass('selected');
  current = $(this);
  $('#wrapper').scrollTo($(this).attr('href'), 750);            
  return false;
});

to

$('a.panel').click(function (e) {
  e.preventDefault();
  current.removeClass('selected');
  $(this).addClass('selected');
  current = $(this);
  $('#wrapper').scrollTo($(this).attr('href'), 750);            
});
0
 
LVL 7

Author Comment

by:rgranlund
ID: 37801957
@mplungjan that change cause the scrollto to not work at all.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37802017
Any error in the console?
0
Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

 
LVL 7

Author Comment

by:rgranlund
ID: 37816929
@mplungjan No errors in console.  Any other clues that may help?
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37817180
No, not really. Do you have a test page?
0
 
LVL 7

Author Comment

by:rgranlund
ID: 37817270
If you go to the link above, you can see the final issue.  It may just be a CSS issue.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37817477
No longer jumping for me. The scroll bars disappear as usual though
0
 
LVL 7

Author Comment

by:rgranlund
ID: 37817509
Any ideas on how to keep it in place?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 37817522
Not without extensive debugging. I am alas off to bed
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question