Skip to content

Using CLImageViewPopoup in a table view #5

Description

@Pe-te

Hi, we have the imageview in a cell in a tableview and sometimes get a weird effect, where the image comes flying in from the bottom instead of just starting where the image was clicked.

Think this line is causing the problem:

    let point = self.convert(self.bounds, to: parentView)
  • GOOD: When the list is at the beginning, the convert works fine:
    self.bounds = (0.0, 0.0, 280.0, 200.0)
    point = (20.0, 59.0, 280.0, 200.0)
  • BAD: When you scroll down the list and then pick an item, the y coordinate is wrong (this should also give y around 59 instead of 2570):
    self.bounds = (0.0, 0.0, 280.0, 200.0)
    point = (20.0, 2570.0, 280.0, 200.0)

Not sure how to fix it properly, maybe check if it is inside a scrollview or there could be a different convert function for that?

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