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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:48:10+00:00 2026-06-03T04:48:10+00:00

I have a parent div which is resizable (width only) – within this div

  • 0

I have a parent div which is resizable (width only) – within this div I have a number of other divs that are also resizable (height only).

At times I want to either disable or destroy the parent width resizing but leave the inner height resizing in place.

When I call $("#idTopDiv").resizable("destroy");, this destroys the resizables on all of the child divs as well.

Typical layout is:-

<div id=idDivTop> <!-- Resizable width -->
    <div id=idInnerOne>
    </div>

    <div id=idInnerTwo> <!-- Resizable height -->
    <div>
</div>

Appreciate any ideas.

  • 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-03T04:48:11+00:00Added an answer on June 3, 2026 at 4:48 am

    I think this happens because the destroy of resizable removes all resize handels inside of the ui element, which happens to include the resize handles for the inside resizables. So the inside resizables aren’t actually being destroyed, they’re just getting messed up.

    You can see the Resizable source code here; its happening at line 199 where it says .find('.ui-resizable-handle').remove();.

    To fix this you need to call the destroy method on the inner resizables also and then recreate them. (jsfiddle)

    $("div").resizable();
    
    // Destroy all three resizables
    $("div").resizable("destroy");
    
    // Recreate the inner resizables
    $("#idInnerOne, #idInnerTwo").resizable();
    

    You need to do that to remove bindings and data that resizable sets up upon creation, otherwise it will think its already created when you try re-creating it and it will do nothing.

    You might also consider disabling the outer resizable instead of destroying it, but that has its own issues.

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

Sidebar

Related Questions

I have a main parent div that is .resizable(). One of it's child divs,
I have a parent div (container) that has a child div (inner) which also
I have a parent div gal1 , inside which there can be further divs
I have a parent div id=A which has a width of 100%. I want
I have a container div .parent with a fixed width 500px which contains a
I have 2 divs nested within a parent div, and I cant figure out
I have couple <a> within a parent div which will perform a specific action
here is my problem. I have a div which contains two other divs :
I have a parent div that is filled with multiple child divs (see here
If you have a parent div that wraps a fixed height div and a

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.