私のプロジェクトには、左右に2つのdiv領域があるWebページがあります。左側のdivはページ幅全体のほぼ60%を占め、右側のdivはページの約36%を占めます。ブラウザを右側または左側から縮小するときに、両方のdiv領域のサイズを適切な比率で変更したかったのです。UIはJavascriptから生成されています。これがコードです。
boardHolderPadding = $board.outerHeight() - $board.height();
$board.height(viewportHeight - siblingsHeight - boardHolderPadding);
this.$('#board .droptarget').setWidthAsRatioOfHeight(this.options.ratio);
$('#sidebar').width($(window).width() - $board.find('#board').width() - 50);
JQueryサイズ変更プラグインを試してみましたが、探している適切な結果を得ることができませんでした。誰か提案がありますか?
ありがとう