Skip to content

new setColumn() heuristics#1098

Merged
adumesny merged 2 commits intogridstack:developfrom
adumesny:develop
Dec 19, 2019
Merged

new setColumn() heuristics#1098
adumesny merged 2 commits intogridstack:developfrom
adumesny:develop

Conversation

@adumesny
Copy link
Copy Markdown
Member

Description

  • complete re-write of the setColumn() code that moves/sizes widgets.
    we now do a reasonable job positioning widgets (especially 1 column), and
    we remember positions for each column layout to going from 12 -> 1 -> 12
    will bring it exactly back for example!
  • new column.html test case (now that it works) to be published.
  • fixed bunch of bugs I found with overlapping widgets (going to 2 or 1 column)
  • fixed bug where default (empty) option when adding a widget would render it at (0,0)
    overlapping any existing widgets. added readAttr()/_writeAttr() to help there.
  • unit test greatly updated with exact location expected of widgets (not that I agree with location)

better fix than #809

fixing responsive.html will come next...

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* complete re-write of the `setColumn()` code that moves/sizes widgets.
we now do a reasonable job positioning widgets (especially 1 column), and
we remember positions for each column layout to going from 12 -> 1 -> 12
will bring it exactly back for example!
* new column.html test case (now that it works) to be published.
* fixed bunch of bugs I found with overlapping widgets (going to 2 or 1 column)
* fixed bug where default (empty) option when adding a widget would render it at (0,0)
overlapping any existing widgets. added `_readAttr()/_writeAttr()` to help there.
* unit test greatly updated with exact location expected of widgets (not that I agree with location)

better fix than #809

fixing responsive.html will come next...
@adumesny adumesny closed this Dec 19, 2019
@adumesny adumesny reopened this Dec 19, 2019
@coveralls
Copy link
Copy Markdown

coveralls commented Dec 19, 2019

Coverage Status

Coverage increased (+0.4%) to 67.081% when pulling 1f9560d on adumesny:develop into 5035a18 on gridstack:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants