Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

PXListView lose first Cell element when resizing parent view #22

Closed
loretoparisi opened this Issue · 3 comments

2 participants

@loretoparisi

I have a PXListView in a XIB, inside a NSView.
I'm using an animator to replace the current NSView with a new one like this:

[[container animator] replaceSubview:currentView with:myListView];

where myListView is the parent view of a PXListView.

When doing this,
after a window resizing, the PXListView lose the first cell element. If I color the list view background, I can see that the view has the right size and origin, but the first cell element disappears.
When scrolling the list view again, the first cell element, appears again (when scrolling down from the top of the window).

What is happening?

@Perspx
Owner

Hi Loreto,

Do you get this behaviour if you don't animate the view in?

@loretoparisi

Hi Perspx, the same behavior happens when I replace the subview, without animating it.

@loretoparisi

So I found out a possibile solution. When adding new cells I'm updating the view content calling the layoutCellsForResizeEvent method. This way it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.