レイアウトjQueryのUI selectmenus破損は、私はこのプラグインを使用しています
選択メニューが下にあるときにドロップダウンが上に表示されているときに、これを修正するにはどうすればよいですか?
私が使用するJS:
$('select').not("select.multiple").selectmenu({
style: 'dropdown',
transferClasses: true,
width: null
});
レイアウトjQueryのUI selectmenus破損は、私はこのプラグインを使用しています
選択メニューが下にあるときにドロップダウンが上に表示されているときに、これを修正するにはどうすればよいですか?
私が使用するJS:
$('select').not("select.multiple").selectmenu({
style: 'dropdown',
transferClasses: true,
width: null
});
に私はあなたが使用しているバージョンは非常に最新ではないと思います。正式なリポジトリであるGitHub repositoryからソースをチェックする必要があります。
GitHubのからのバージョンは比較的要素(「トップトップ」、「左下」...)にメニューを表示する場所を指定することができますjQueryのUIからjquery.ui.positionを使用し、また、 は衝突検出を許可します。 documentationから
:もはや存在しないようです_refreshPosition()
同様の問題のためにquestionを説明し、次の(方法を確認してください
$('#myelement').selectmenu({
...
position: {
my: "left top", // default
at: "left bottom", // default
// "flip" will show the menu opposite side if there
// is not enough available space
collision: "flip" // default is ""
}
});
:
When the positioned element overflows the window in some direction, move it to an alternative position. Similar to my and at, this accepts a single value or a pair for horizontal/vertical, eg. "flip", "fit", "fit flip", "fit none".
だからではなく、このようにプラグインを使用したいですもちろん、オプションのポジションはまだそこにあります)。
こんにちは、新しいjquery.ui.select.jsを使用すると、jquery.ui.select.js:46 - Uncaught TypeError:Object#
プラグインは、ウィジェットファクトリが '_bind()'メソッドを実装しているjQuery UI 1.9(まだ開発中です)に基づいています。 jQuery UI 1.9を使用する必要があります。 –
私はこのバージョンを使用するとすべてがうまくいくのでしょうか?私はより多くのプラグインにUIを使用するので... – Maanstraat