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

Initial render when x and y attributes are not provided works for horizontal direction but in vertical direction it just stacks one under the other. #106

Open
RonakKhandelwal opened this issue Feb 1, 2017 · 2 comments

Comments

@RonakKhandelwal
Copy link

RonakKhandelwal commented Feb 1, 2017

resizeGrid was used, in the horizontal direction it works fine but in the vertical one no proper arrangement

@vbgm
Copy link

vbgm commented Mar 13, 2017

I have the same issue in both vertical and horizontal direction (osx chrome and safari). Even in the demo, if to turn off assigning the data-x and data-y attributes. As a workaround, managed to get the items positioned when specifically calling resize function right after initialization:

  $('#grid').gridList({
    lanes: 8,
    direction: 'vertical',
  });
  $('#grid').gridList('resize');

@vbgm
Copy link

vbgm commented Mar 13, 2017

:-) Just read the docs one more time.. so it is not a workaround but an expected behaviour.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants