File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -164,11 +164,14 @@ $.ui.position = {
164
164
data . my [ 0 ] === "right" ?
165
165
data . elemWidth :
166
166
0 ,
167
+ atOffset = data . at [ 0 ] === "left" ?
168
+ data . targetWidth :
169
+ - data . targetWidth ,
167
170
offset = - 2 * data . offset [ 0 ] ;
168
171
position . left += position . left < 0 ?
169
- myOffset + data . targetWidth + offset :
172
+ myOffset + atOffset + offset :
170
173
over > 0 ?
171
- myOffset - data . targetWidth + offset :
174
+ myOffset + atOffset + offset :
172
175
0 ;
173
176
} ,
174
177
top : function ( position , data ) {
@@ -187,7 +190,7 @@ $.ui.position = {
187
190
- data . targetHeight ,
188
191
offset = - 2 * data . offset [ 1 ] ;
189
192
position . top += position . top < 0 ?
190
- myOffset + data . targetHeight + offset :
193
+ myOffset + atOffset + offset :
191
194
over > 0 ?
192
195
myOffset + atOffset + offset :
193
196
0 ;
You can’t perform that action at this time.
0 commit comments