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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:24:49+00:00 2026-06-10T19:24:49+00:00

I have a problem with a dragging and resizable box. It works fine, drags

  • 0

I have a problem with a dragging and resizable box. It works fine, drags and rezises fine, but i have a container that holds these elements and as soon as I trigger an overflow and attempt to rezise the div it fails and resets backs to container width. http://jsfiddle.net/JTTYM/26/

preview


UPDATE:: Ok, maybe Im describing the problem wrong, Go to this url: http://jsfiddle.net/JTTYM/52 and scroll to find the green box, then attempt to resize it. Once resized the overflow scroll bars disappear. As said above, it’s like the overflow values are not counted in a resize

  • 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-10T19:24:51+00:00Added an answer on June 10, 2026 at 7:24 pm

    This come from your .layer { position: absolute; }.

    When you’re using an absolute position, remember to always set a relative position on a parent, or you’ll have many issues.

    In your case, just add this CSS :

    .layers_group {
       position: relative;   
    }
    

    Example:

    $(function() {
        $(".live_resizable").resizable();
        $(".live_draggable").draggable();
    });
    .main {    
        position:absolute;
        right:25px;
        left: 25px;
        top: 25px;
        bottom: 25px; /*200*/
        overflow:auto;
        border:2px solid red;
    }
    .layers_group {
       position: relative;   
    }
    #stuff {
        width: 600px;
    }
    .layer {    
        background-color: green;
        width: 100px; 
        height: 100px; 
        top: 900px; 
        left: 900px;
        cursor:move;
    }
    
    /* Jquery to add hangles i think */
    .ui-resizable { position: absolute;}
    .ui-resizable-handle { position: absolute;font-size: 0.1px; display: block;  }
    .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
    .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
    .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
    .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
    .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
    .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; background:url(images/corner.gif); }
    .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
    .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
    .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <link href="https://code.jquery.com/ui/1.8.18/themes/smoothness/jquery-ui.css" rel="stylesheet"/>
    <script src="https://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script>
    <div class="main">
        <div id="stuff">
            <div class="layers_group aaasdasd">
                <div class="live_draggable live_resizable layer"></div>
            </div>
        </div>
    </div> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem SIMILAR to preventing form data reposting, but not quite the same
i have a rather weird problem that should fix a bug in my current
I have a problem that I implemented a functionality in which we draw bitmaps
I have another orientation problem. But this one is very tricky. My RootViewController is
I have a problem with dragging object in iPhone sdk , my UIImageView outlet
I have searched extensively on this, but cannot find the solution to my problem.
I have written a custom class that depends significantly on touch dragging/positioning, outside of
I have a layout that has some horizontal scroll on top, some text box
My problem is very simple. I have three columns that I want to be
I have a application developed in ActionScript 2 which has dragging/dropping activity. which works

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.