This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YOLO !
Private methods to get the direction, index and lane.
Also calculate the grid and item sizes based on the direction
This was referenced Aug 3, 2015
Closed
This reverts commit b8964ee.
Shoot that shit jaja
Conflicts: spec/gridItemResizeSpec.js src/gridList.js
@skidding care to take a look? |
@@ -212,10 +216,7 @@ divided by the number of grid rows. | |||
|
|||
- Their README reads Ducksboard is no longer active in their development. There | |||
are a few notable forks but it's hard to assert their [reliability.](https://github.com/dustmoo/gridster.js/issues) | |||
- gridster works vertically and our design is horizontal. We instigated a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's still worth noting that GridList (now) supports both vertical and horizontal, while Gridster just vertical. Unless it now supports both axis.
LGTM |
@@ -12,8 +12,6 @@ body { | |||
left: 0; | |||
right: 10px; | |||
bottom: 0; | |||
overflow-x: auto; | |||
overflow-y: hidden; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You can add
auto
for bothx
andy
@NiGhTTraX I found a collision bug or is this the desired behaviour ? L.E: I'm using fixtures.verticalGridDemo |
Previous way of calling `resize` would pull items to the left.
👍 |
@catalinmiron fixed. |
@andrei-picus-hs 🌟 LGTM |
andrei-picus-hs
added a commit
that referenced
this pull request
Aug 25, 2015
Implement vertical gridlist
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Vertical gridlist
In order to make the grid to support both
vertical
andhorizontal
directions we will modify its current implementation by adding new concepts#indexes
and#lanes
.Insert the image
rows
prop toitemsPerLane
, we no longer need arows
optionIf specified,
itemsPerLane
, will represent the #lanesdirection
to identify the direction of the grid.By default will be
horizontal
.direction
can behorizontal
(default) orvertical
Item per lane 2
Image
Fixture
Resize flow from
2 lanes => 3 lanes
and from3 lanes => 4 lanes
Item per lane 3
Image
Fixture
Resize flow from
3 lanes => 2 lanes
and from3 lanes => 4 lanes
Item per lane 4
Image
Fixture
Resize flow from
4 lanes => 5 lanes
and from4 lanes => 3 lanes
direction = vertical
vertical
direction, ensure that unit test passed.horizontal "timelines"
_tryToResolveCollisionsLocally
and_pullItemsToLeft
for vertical grid_adjustHeightOfItems
to both directions#lanes are
rows
orcolumns
based on thedirection
. Lanes represent the fixed dimension of the grid.#indexes = represent the variable dimension of the grid.
grid[index][lane]