Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

findLeftMostPositionForItem logic is flawed #64

Merged
merged 1 commit into from Aug 21, 2015

Conversation

NiGhTTraX
Copy link
Contributor

bug

Solution

The _findLeftMostPositionForItem method is only checking for items on the same row as the given item. We should change it to check for items across the entire height of the item.

for (var j = item.y; j < item.y + item.h; j++) {
  var otherItem = this.grid[i][j];
}

TODO

  • write tests that fail
  • fix tests

@andrei-picus-hs andrei-picus-hs self-assigned this Aug 20, 2015
@andrei-picus-hs
Copy link
Contributor Author

@skidding please review.

@ovidiuch
Copy link
Contributor

LGTM

@andrei-picus-hs
Copy link
Contributor Author

@skidding please review.

@ovidiuch
Copy link
Contributor

LGTM

andrei-picus-hs added a commit that referenced this pull request Aug 21, 2015
findLeftMostPositionForItem logic is flawed
@andrei-picus-hs andrei-picus-hs merged commit d20e419 into master Aug 21, 2015
@andrei-picus-hs andrei-picus-hs deleted the 64-find-left-most-position branch August 21, 2015 09:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants