CPSplitView Fix for setIsPaneSplitter:

0 views
Skip to first unread message

Alexander Ljungberg

unread,
Nov 17, 2009, 2:57:44 PM11/17/09
to Cappuccino & Objective-J Development List
Bug: if setIsPaneSplitter:YES is called on a CPSplitView after is
subviews have been added, the subviews will not resize to reflect the
new width of the divider widget. This is presumably true for calling
setIsPanSplitter:NO as well although I have not tested this.

http://cloud.github.com/downloads/aljungberg/cappuccino/Before_Split_Fix.png

The fix:

http://github.com/aljungberg/cappuccino/commit/eaecdc7d795c08fc9e7a9829821c33703b82399f#L0R151

After the fix:

http://cloud.github.com/downloads/aljungberg/cappuccino/After_Split_Fix.png

This project can be used to reproduce the error:

http://cloud.github.com/downloads/aljungberg/cappuccino/capp-splitpanebug2.tbz

To use it, install Frameworks/ and open index.html. The problem will
show up immediately, although it will disappear if you resize the
window.
Reply all
Reply to author
Forward
0 new messages