Skip to content

Redraw issue when in inactive tab #93

@jdanthinne

Description

@jdanthinne

It seems that when used in an inactive tab, the headerView doesn't seem to correctly redraw when the tableView is reloaded.

Here's a precise example.

In this first case (correct behaviour), I scroll down the down the table, and the headerView (the faces and dates) begin to scroll and I let the headerView hidden at half its height. If I click on another face while staying in the same tab, the table is reloaded, and the headerView correctly position itself at its original position, full size.
artboard

In the second case (wrong behaviour), I scroll down the table at the same position, then I CHANGE TAB, click on another face (which trigger the same refresh function on every tab via the NotificationCenter), then if I go back to the previous tab, the headerView is at the correct position, but is strangely clipped!.
artboard 2

The only/ugly workaround I found is to force redraw by doing this:

subjectsAndPeriodView.maximumContentHeight += 1
subjectsAndPeriodView.maximumContentHeight -= 1

Any advice on how to trigger the redraw correctly?
Thanks!

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