Changeset [d587016cc3b2f72ab511f9f53c5b2a09d58d6dc8] 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...

Committed by Alexander Ljungberg

  • M AppKit/CPSegmentedControl.j
  • M Tests/Manual/CPTabView2/AppController.j
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins