8000 getBoundingClientRect needs to be parsed · Issue #241 · jedfoster/Readmore.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
getBoundingClientRect needs to be parsed #241
Open
@Dahkon

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.

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

      0