Skip to content

Width calculation rounding - Edge browser #541

@jbizkit

Description

@jbizkit

The width calculation of the parent of swipe-element creates an issue wherein the last swipe-element does not display on higher resolutions 1920x1080. On lower resolution this problem does not seem to occur.

The issue being with the Math.round for calculating the width of the parent.

For example I'm displaying 63 images in the swipe inside modal, the width is 76185px in Chrome and in Edge is 76185.69px but the last image does not display, if I go and increase the width by one pixel the image display. This does not occur for the cases only for some only in Edge browser.

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