Unable to "uncollapse" split view
Reported by Hjalti Jakobsson | January 30th, 2010 @ 06:46 PM
Hi.
If I collapse the splitview and quit the application (saving the splitview sizes to the prefs) next time it starts up the split view is collapsed but there is no way to bring it back. toggleCollapse doesn't seem to do anything.
I'm I doing something wrong?
Thanks.
- H
Comments and changes to this ticket
-
Hjalti Jakobsson January 30th, 2010 @ 06:52 PM
Yes, I just updated.
Saw the release notes and thought that this was one of the bugs fixed.
Should I create a sample project for you ?
I remember fixing this a long time ago but I lost my changes when I updated later (silly me).
- H
-
Brandon Walkin January 30th, 2010 @ 06:53 PM
- State changed from new to accepted
I'll take your word for it. Can you see if you can fix this? Thanks.
-
Hjalti Jakobsson January 30th, 2010 @ 07:24 PM
Ok I've found it.
In my example I have a horizontal split view and I collapse the bottom view. Then I quit the app and relaunch it but the uncollapsedSize variable is set to zero and thus not affecting the splitview. I now remember how I solved this earlier. I added an accessor for uncollapsedSize and set it myself at startup. Not the ideal fix so maybe you have opinion on how this should be addressed?
-
Brandon Walkin January 30th, 2010 @ 07:26 PM
- State changed from accepted to duplicate
Guess it's part of this bug: http://bwalkin.lighthouseapp.com/projects/36323/tickets/28-split-vi...
-
Hjalti Jakobsson January 30th, 2010 @ 07:28 PM
//This is the path to the error //Starting at line #398 in toggleCollapse:
if ([self isVertical]) //false - taking else branch
...
else
if ([self collapsibleSubviewCollapsed] == NO) //false - taking else branch ... else ... [[[self collapsibleSubview] animator] setFrameSize:NSMakeSize(constantWidth, uncollapsedSize)]; //uncollapsedSize is zero ...
-
Hjalti Jakobsson January 30th, 2010 @ 07:32 PM
Yeah, looks like the same bug. Sorry for missing that.
Thanks.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify Mac development.