Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
819c9468
Commit
819c9468
authored
Jul 31, 2014
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase "fudge" factor for dragging to top of list with only 1 element.
parent
8ca3f28f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
cms/static/js/utils/drag_and_drop.js
+1
-1
No files found.
cms/static/js/utils/drag_and_drop.js
View file @
819c9468
...
...
@@ -71,7 +71,7 @@ define(["jquery", "jquery.ui", "underscore", "gettext", "js/views/feedback_notif
// Facilitate dropping into the beginning or end of a list
// (coming from opposite direction) via a "fudge factor". Math.min is for Jasmine test.
var
fudge
=
Math
.
min
(
Math
.
ceil
(
siblingHeight
/
2
),
20
);
var
fudge
=
Math
.
min
(
Math
.
ceil
(
siblingHeight
/
2
),
35
);
// Dragging to top or bottom of a list with only one element is tricky
// because the element being dragged may be the same size as the sibling.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment