Changeset [d587016cc3b2f72ab511f9f53c5b2a09d58d6dc8] by Alexander Ljungberg
Revision d587016cc3b2f72ab511f9f53c5b2a09d58d6dc8,
committed by Alexander Ljungberg
· December 15th, 2010 @ 12:26 PM
Fixed: CPSegmentedControl did not take divider width into account when auto sizing. This resolves the incorrect tab sizes in CPTabView.
If a segmented control was initialised with a zero width and
then expanded with setSegmentCount, it would not allocate space for
any needed dividers. The more tabs were added the more the
segmented control would be undersized. The fix is to automatically
adjust the width when dividers are added or removed.
https://github.com/280north/cappuccino/commit/d587016cc3b2f72ab511f...
2 changed files
-
M
AppKit/CPSegmentedControl.j -
M
Tests/Manual/CPTabView2/AppController.j