content size incorrect after collapsing section #3

odrobnik opened this Issue Oct 10, 2012 · 1 comment

2 participants


I am using this in a split view that allows width changing. If you collapse a section and then change the frame width there are two problems:

Incorrect content size

1) collapse a section
2) drag to change width on split view
3) expand section

Notice that the bottom is cut off, because the scroll view content size is still the smaller one. As soon as you drag again the missing part appears.

Jumping sections

1) collapse a section
2) drag to change width

Notice that the position of the section view header below the collapsed on jumps up by one or two pixels as soon as the width is changed


@malcommac The problem for the second part seems to be that the setState:forSections:animated: sets different frames for the sections than the layoutSubviews. In layoutSubviews a section following a closed on has its origin reduced by 1.

@malcommac malcommac pushed a commit that closed this issue Oct 11, 2012
@odrobnik odrobnik Fixed problem when changing width of palette.
e.g. when used in an NSSplitView

fixes #3
@malcommac malcommac closed this in 8c681bd Oct 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment