ドラッグ可能でサイズ変更可能な 2 つの要素があります。それらは水平に並んでいます。私の問題は、一番上の最初の要素のサイズを変更しようとすると、下の 2 番目の要素の位置が最初の要素を自動的に覆うことです。
以下はスタイルです:
<style>
#request-grid { width: 500px; min-height: 200px; margin: 10px; padding: 0.5em;}
#bb-clist { width: 500px; min-height: 200px; margin: 10px; padding: 0.5em;}
.ui-resizable-helper { border: 2px dotted #00F; }
</style>
以下はjqueryuiコードです:
$( "#request-grid" ).draggable({containment: "#content", scroll: true, stack: "#content div" });
$( "#bb-clist" ).draggable({containment: "#content", scroll:true, stack: "#content div"});
$( "#request-grid" ).resizable({
helper: "ui-resizable-helper", containment: "#content"
});
$( "#bb-clist" ).resizable({
helper: "ui-resizable-helper", containment: "#content"
});
以下は html 要素です。
<div id="request-grid" class="ui-widget-content">
</div>
<div id="bb-clist" class="ui-widget-content">
</div>
サイズ変更時に他の要素が他の要素を覆ったり重なったりせずに、この問題を解決するにはどうすればよいですか。
ありがとう。