Fixed: toolbar search fields created in IB were cut in half height-wise due to a too small max size.

This commit is contained in:
Alexander Ljungberg committed 2012-03-14 16:02:25 +00:00
1 parent 2940b5e787
commit c21d2fd017
1 file changed
+7
+7
View File
@@ -69,6 +69,13 @@ NS_CPToolbarItemIdentifierMap =
[self setView:[aCoder decodeObjectForKey:@"NSToolbarItemView"]];
// A Cappuccino search field is 30 px normally while a Cocoa one is 22.
if ([_view isKindOfClass:CPSearchField] && _maxSize.height == 22.0)
{
_maxSize.height = [_view frameSize].height;
_minSize.height = _maxSize.height;
}
[self setVisibilityPriority:[aCoder decodeIntForKey:@"NSToolbarItemVisibilityPriority"]];
[self setAutovalidates:[aCoder decodeBoolForKey:"NSToolbarItemAutovalidates"]];
}