Skip to content

Incorrect calculation of block height when using "sizeToContent: true" and an image in an inner block without text. #2979

@IgorA100

Description

@IgorA100

Subject of the issue

Incorrect calculation of block height when using "sizeToContent: true" and an image in an inner block without text.

Your environment

  • version of gridstack.js - 11.1.2 & 11.2.0 & 11.4.0
  • which Chrome, Chromium/Windows 8.1, 10

Steps to reproduce

https://jsfiddle.net/b50v4t87/

Expected behavior

The outer border of the block must match the size of the image regardless of "cellHeight"

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions