Thanks to visit codestin.com
Credit goes to github.com

Skip to content

If I set cellHeight to some vh, only first grid will take vh, rest will use px #1217

Closed
@ferretwithaberet

Description

@ferretwithaberet

Subject of the issue

If I set cellHeight to a vh measure, like 7vh, only the first grid will be initialized with 7vh, others will use 7px for some reason.

Your environment

1.1.0 Newest, served from CDN
Brave Version 1.4.96 Chromium: 80.0.3987.132 (Official Build) (64-bit)

Steps to reproduce

  1. Make multiple grids.
  2. Gridstack options should contain a vh unit for the cellHeight property, like '7vh'
  3. Initialize them with Gridstack.initAll(options).

Expected behaviour

All grids should have a height of 84vh.

Actual behaviour

First grid has a height of 84vh, others have 84px.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions