Skip to content

getBoundingClientRect needs to be parsed #241

Description

@Dahkon

I came on a bug that only occurs en chrome desktop mode, brave is ok, emulation mobile is ok too...

Here is the line on the dist file that needs to be corrected :
481 var expanded = parseInt(element.getBoundingClientRect().height) <= element.readmore.collapsedHeight;

parseInt fix the issue. Else the value returned by this function is not equal or less to collapsedHeight (240.000001453 > 240).

Hope it helps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions