Having an issue with resizing here. Using the JQuery .resizable()
on a div with specific css:
div#resizable {
float: left;
border: solid 1px white;
box-shadow: 0px 0px 0px 1px #F2F2F2;
box-sizing: border-box;
padding: 15px;
}
This div contains various other elements. Attaching the resizable
like this:
$( "#resizable" ).resizable({ minWidth: 200,
maxWidth: 597,
minHeight: 240,
resize: widgetResizeListener
});
The widgetResizeListener()
currently just logs to console.
When trying to change the height by dragging the ui-resizable-s
side, it automatically adjusts the width by approximately 30px
. This occurs every time I begin dragging, causing the desired width to be lost. The same issue happens when adjusting the width and affecting the height.
Wondering if this is due to the padding of the div? Previously, without padding, these "jumps" did not occur. However, removing the padding is not an option as it serves a purpose. Is there a way to account for padding within JQuery resizable()?
Any assistance would be greatly appreciated. Thank you...