File tree 1 file changed +3
-4
lines changed
javascript/atoms/locators
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,9 @@ bot.locators.relative.near_ = function (selector, opt_distance) {
174
174
// | 2 |
175
175
// +---+
176
176
//
177
- // As you can see, the right hand side of 1 is "near" the left hand side
178
- // of 2. Of course, it might be that 2 is to the left of 1, in which case
179
- // we would be comparing the right hand side of 2 to the left hand side
180
- // of 1. Similar logic happens for top and bottom.
177
+ // As you can see, the right hand side of 1 is "left of" the left-most
178
+ // edge of 2. The top edge of 2 is at the same level as the bottom
179
+ // edge of 1. This means that 1 is "above" 2, and 2 is "below" one.
181
180
182
181
// Distance from left edge to right edge
183
182
var leftDistance = Math . abs ( rect1 . left - ( rect2 . left + rect2 . width ) ) ;
You can’t perform that action at this time.
0 commit comments