Fixed split view right collapse size restore.

When a collapsed split view subview was restored, e.g. by double clicking the divider, and the collapsed subview was on the right hand side of the divider, the pre-collapse split view position was not restored.
This commit is contained in:
Alexander Ljungberg
2011-10-23 00:09:47 +01:00
parent d3f4e205af
commit 240615c71b
+1 -1
View File
@@ -679,7 +679,7 @@ var CPSplitViewHorizontalImage = nil,
preSize = frameB.size[_sizeComponent];
frameB.size[_sizeComponent] = frameB.origin[_originComponent] + frameB.size[_sizeComponent] - realPosition - [self dividerThickness];
if (preSize !== 0 && frameB.size[_sizeComponent] === 0)
_preCollapsePosition = preSize;
_preCollapsePosition = frameB.origin[_originComponent];
frameB.origin[_originComponent] = realPosition + [self dividerThickness];
[_subviews[dividerIndex + 1] setFrame:frameB];