Changeset [3bc18490418b6bd051b37d7292e58d2daff230e7] by Alexander Ljungberg

June 12th, 2012 @ 12:04 PM

Improve toolbar item layout.

The height of all items is determined by the tallest item, like in Cocoa. But unlike Cocoa our toolbar is presently fixed height so in order to make this look well for small or large items, the whole row of items is now vertically centred, making the allocation of margin above and below automatic.

Furthermore if a toolbar item has a small view or a small icon, it is now centred within the available space above the label. For example, for a tiny icon in one item next to a normal size icon the tiny icon would be centre aligned with the larger icon.
https://github.com/cappuccino/cappuccino/commit/3bc18490418b6bd051b...

Committed by Alexander Ljungberg

  • M AppKit/CPToolbar.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