LoginSignup
3
1

More than 5 years have passed since last update.

AngularUIのUI.Sortableでテーブル要素がドラッグ時に崩れる事象の解決

Last updated at Posted at 2019-02-07

解決方法

いきなり解決方法1

var fixHelper = function(e, ui) {
  ui.children().each(function() {
    $(this).width($(this).width());
  });
  return ui;
};

$scope.sortableOptions = {
  helper: fixHelper,
};

<tbody ui-sortable="sortableOptions">
    <tr></tr>
    <tr></tr>
</tbody>
3
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
3
1