I have created a basic web application that allows you to dynamically add div elements to a container div.
You can preview the app here:
Before resizing
https://i.sstatic.net/X2o6K.png
When you click the "Image" link in the left menu, a new div with a black background is added to the container div.
These dynamic divs can be dragged and resized using jQuery's draggable and resizable methods from jQuery UI library.
The draggable functionality works fine, but the resizable feature seems to cause dependency between the divs. When trying to resize one div, it affects the size of other dynamically added divs.
Here is an illustration of the issue I'm facing:
After resize https://i.sstatic.net/1J4Ot.png
As shown in the image, attempting to resize "div2" also resizes "div1" because of their interdependence.
I aim to make each div independent so they can be resized individually without affecting others even if they overlap.
Below are my code snippets:
<!-- JavaScript code block -->
// Sample JavaScript code here
<!-- CSS styles -->
/* Sample CSS styles here */
I apologize for any confusion caused by my usage of snippet system and the variable names mentioned in the code. Thank you for understanding.