Skip to content

Gallery layout is triggered when parent element is hidden (width=0) #185

Open
@cvolzke4

Description

@cvolzke4

A re-layout of the photos happens when width is 0, ie. when the containing element is hidden.
This causes the following problems:

  1. For an app with tabs, the scroll position of the gallery is not maintained when changing tabs.
  2. A complete re-layout is performed, which causes images to re-render causing flicker.

Screencast before:
share.getcloudapp.com/2NuybPlb

Screencast with a fix:
share.getcloudapp.com/6quebvrB

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