mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Constrain height of vertical dividers and remove intrinsic height
Previously some status bars could be compressed vertically because the dividers did not have a fixed height, so they were sized based on their intrinsic height. With a fixed height the intrinsic height is redundant and previously it was simply hiding an issue with an under-constrained layout, so better just remove them.
This commit is contained in:
@@ -87,11 +87,6 @@ static NSTextField* OakCreateTextField ()
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSSize)intrinsicContentSize
|
||||
{
|
||||
return NSMakeSize(NSViewNoIntrinsicMetric, 25);
|
||||
}
|
||||
|
||||
- (void)updateConstraints
|
||||
{
|
||||
if(_layoutConstraints)
|
||||
@@ -110,7 +105,7 @@ static NSTextField* OakCreateTextField ()
|
||||
};
|
||||
|
||||
NSArray* layout = @[
|
||||
@"H:|[topDivider]|", @"V:|[topDivider(==1)]-4-[divider]-5-|", @"V:[status]-5-|"
|
||||
@"H:|[topDivider]|", @"V:|[topDivider(==1)]-4-[divider(==15)]-5-|", @"V:[status]-5-|"
|
||||
];
|
||||
|
||||
for(NSString* str in layout)
|
||||
|
||||
Reference in New Issue
Block a user