LoginSignup
1
1

More than 5 years have passed since last update.

jQueryの「draggable」指定時に画面サイズ以上の位置へドラッグできない場合

Posted at

jQuery-UIを利用して、「ドラッグ可能Object」に指定した場合、ドラッグできる位置がウィンドウサイズ以内に制限されてしまうことがあります。
CSSを編集することでも解消可能ですが、JSのみで解消をするためには、単純に以下のコードでOKです。

jQuery(function($) {
    $('body').css({
        possition : 'relative'
    })
});
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1