Skip to content

minHeight and maxHeight are not handled properly #413

@wxiaoguang

Description

@wxiaoguang

Describe the bug

Related issue:

In some cases, we need to set minHeight and maxHeight at the same time.

However, although the EasyMDE document has described the details of minHeight/maxHeight handling, the current logic is not ideal.

To Reproduce

Current logic:

{minHeight: '80px', maxHeight: 'calc(100vh-200px)'} becomes style="min-height: calc(100vh-200px); height: calc(100vh-200px)"

Then users are not able to make the heights correct in some cases.

Expected behavior

Just pass minHeight to min-height and maxHeight to max-height as they are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions