JSFiddle - React, Tailwind, and code Playground
HTML
<button id="dialog">OPEN DIALOG</button><br/><br/>
<div id="resize1" style="width: 100px; height: 100px; border: 1px solid red;">RESIZABLE 1 WITH HELPER SET AT INIT TIME</div><br/><br/>
<div id="resize2" style="width: 100px; height: 100px; border: 1px solid green;">RESIZABLE 2 WITH HELPER SET AFTER INIT</div>
CSS
/*
* jQuery UI CSS Framework 1.8.6
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*/
/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix { display: inline-block; }
/* required comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix { height:1%; }
.ui-helper-clearfix { display:block; }
/* end clearfix */
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*
* jQuery UI CSS Framework 1.8.6
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*
* To view and modify this theme, visit...
JavaScript
$('#dialog').click(function() {
$('<div style="width: 300px; overflow: hidden;"><iframe src="http://www.google.com" frameborder="0" width="100%" height="100%"/></div>').dialog({
width: 300,
resizable: true
}).dialog('widget').resizable('option','helper','ui-resizable-helper');
});
$('#resize1').resizable({
helper: 'ui-resizable-helper'
});
$('#resize2').resizable();
$('#resize2').resizable("option","helper","ui-resizable-helper");