Skip to content

Conversation

@jlowcs
Copy link

@jlowcs jlowcs commented Feb 15, 2016

Add handling of em/rem/px units for cell_height and vertical_margin as well as no cell_height option/full CSS heights.

The point is mostly to be able to work with "em" sizes.

See changes in README for details.

…as well as no height option/full CSS heights
src/gridstack.js Outdated
this.opts.vertical_margin_unit = heightData.unit;
this.opts.vertical_margin = heightData.height;

!noUpdate && this._update_styles();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!noUpdate && this._update_styles();
Please, no. We can definitely bear one more line to increase readability. ;)

@jlowcs
Copy link
Author

jlowcs commented Feb 15, 2016

Better? :)

@kdietrich kdietrich added this to the v0.2.5 milestone Feb 15, 2016
troolee added a commit that referenced this pull request Feb 16, 2016
Add handling of em/rem/px units for cell_height and vertical_margin
@troolee troolee merged commit 1cce0bd into gridstack:master Feb 16, 2016
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.

3 participants