Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 971803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:01:16+00:00 2026-05-16T03:01:16+00:00

I have a div with content and overflow assigned giving it two scroll bars.

  • 0

I have a div with content and overflow assigned giving it two scroll bars.

On the inside of that div is another one which needs to be anchored to the bottom at all times.

To achieve this, I put a listener on the scroll event to reposition the div at the bottom of the div:

obj.scroll(function(e) {
    var uiValue = obj.scrollTop();
    $("#calendar-grid-key").animate({ bottom: -1 * uiValue }, 0);
});

It works beautifully on nearly every browser bar Firefox 3 on PC. It has a strange lag (see video: http://www.jamiewilson.co.nz/ScreenFlow.mov).

Someone suggested stopping the event drawing, calculating the difference and then drawing but I don’t quite follow and can’t find anything online that lets me stop the draw and then restart it.

Cheers in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:01:17+00:00Added an answer on May 16, 2026 at 3:01 am

    How about this solution? It doesn’t move at all.

    The main points:

    Style:

      #calendar-grid-key {
        position: absolute;
        border: 1px solid #FF0000;
      }
    

    And js:

    function moveCalendar() {
      $("#calendar-grid-key").offset({top: $("#container").offset().top + $("#container").height() - $("#calendar-grid-key").height(), left: $("#container").offset().left });
    }
    
    $(document).ready(function() {
    
      moveCalendar();
    
      $("#container").scroll(function(e) {
        moveCalendar()
      });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 505k
  • Answers 505k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I've just been researching this and the short answer is… May 16, 2026 at 3:23 pm
  • Editorial Team
    Editorial Team added an answer Serializable transactions will block any updates on the ranges scanned… May 16, 2026 at 3:23 pm
  • Editorial Team
    Editorial Team added an answer Sure. Just make it private in the derived class and… May 16, 2026 at 3:23 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a div which is set to overflow:scroll;. I get scrollbars which is
Here is my situation, I have a div which has height:400px and overflow:auto to
I have a div with the content set for overflow: auto and height: 300px
This is my problem, I have a div and inside 2 divs, one is
I have a container div element that has overflow:hidden on it. Unfortunately this property
I have a page that has three divs one at the top, one at
Basically I want to have that middle blue body part scroll minus the scrollbar
So I have a div whose content is generated at runtime it initially has
Here's the idea: I have a div element, #content_wrapper, which encompasses three floated divs,
I want to make a div that expands to reveal its content when clicked.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.