File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,10 @@ def initialize_drag(self):
141
141
document.documentElement.scrollTop += (top - 16);
142
142
} else {
143
143
el.scrollIntoView();
144
+ top = el.getBoundingClientRect().top;
145
+ if (top <= 15) {
146
+ document.documentElement.scrollTop += (top - 16);
147
+ }
144
148
}
145
149
""" ,
146
150
source ,
@@ -149,15 +153,15 @@ def initialize_drag(self):
149
153
150
154
(
151
155
ActionChains (self .selenium )
152
- .move_to_element_with_offset (source , 5 , 5 )
156
+ .move_to_element_with_offset (source , 3 , 3 )
153
157
.click_and_hold ()
154
158
.perform ()
155
159
)
156
160
157
161
time .sleep (0.05 )
158
- ActionChains (self .selenium ).move_by_offset (0 , - 15 ).perform ()
162
+ ActionChains (self .selenium ).move_by_offset (0 , - 10 ).perform ()
159
163
time .sleep (0.05 )
160
- ActionChains (self .selenium ).move_by_offset (0 , 15 ).perform ()
164
+ ActionChains (self .selenium ).move_by_offset (0 , 10 ).perform ()
161
165
162
166
with self .test_case .visible_selector (".ui-sortable-helper" ) as el :
163
167
return el
You can’t perform that action at this time.
0 commit comments