Skip to content

wrong counting of minHeight for resizable widget #999

@miroslav-peterka

Description

@miroslav-peterka

At line

var strictCellHeight = Math.ceil(o.outerHeight() / o.attr('data-gs-height'));

is some mistake, IMHO because you forgot to take in equation vertical margin.

example:
cellHeight = 80px and vertical margin = 20px
item height is 3, minHeight is 2

minHeight in pixels should be 80 x 2 + 20 = 180px. but at pointed line is counted number 188px

803 + 220 = 280
280 / 3 = 93.3 ~= 94
94 * 2 = 188px

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