mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-13 18:23:50 +00:00
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:
1 parent
2940b5e787
commit
c21d2fd017
1 file changed
+7
@@ -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"]];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user