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 8114135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:03:39+00:00 2026-06-06T03:03:39+00:00

I have a div that is position: absolute and it contains items that get

  • 0

I have a div that is position: absolute and it contains items that get dragged. I want to set the containment of their drag to parent but when I do scrolling doesn’t seem to work.

Here’s a jsfiddle example http://jsfiddle.net/pJXVH/1/

Can anyone tell me if there is a way to get around this? While maintaining a layout that has a ‘fill remainder’ div?

  • 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-06-06T03:03:40+00:00Added an answer on June 6, 2026 at 3:03 am

    So here’s my current solution to the issue, I changed the way that the containment is set. I do not use parent. I just set the left and top, but I use

    containment :[10, $('.desktop').offset().top]
    

    and then inside of my function that hides the banner:

    $('.ui-draggable').draggable('option', 'containment',  [10, $('.desktop').offset().top]);
    

    This changes the containment as needed…

    I would prefer an answer that is more css or $.draggable oriented but this will serve my purposes.

    If you find a better way please let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that has a relative position but I need to get
I have a div with some content that has a negative position relative. I
I have a div that I click on to drag it. Once it's on
I have a div that contains a list of messages (it's a chatroom application).
I have a DIV that I want to touch the bottom of the screen
I have a div that contains a paragraph, a list and a right-floated div.
I have a min-height 100% div that contains all the content of my website:
I have the following setup on 2 div tags: <div id='div1' style='position: absolute; z-index:
I have a div ( .outer - the viewport) with fixed height that contains
I have an html page which contains a div that displays the html from

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.