Skip to content

Commit

Permalink
Reduce DragAndDropAction initial offset by 1px
Browse files Browse the repository at this point in the history
Updates offset of '_match_helper_with_target' from (0, -16) to (0, -15).
Without this, adding a new element to NestedStackedInline would fail
test suite.
  • Loading branch information
btknu authored and fdintino committed Mar 12, 2019
1 parent acf7562 commit a8c50e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nested_admin/tests/drag_drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def release(self):
ActionChains(self.selenium).release().perform()

def _match_helper_with_target(self, helper_element, target_element):
ActionChains(self.selenium).move_by_offset(0, -16).perform()
ActionChains(self.selenium).move_by_offset(0, -15).perform()

desired_pos = tuple(self.to_indexes)

Expand Down

0 comments on commit a8c50e3

Please sign in to comment.