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:
Allan Odgaard
2020-04-14 12:55:42 +07:00
parent e490b86c47
commit eccbb81e8a
4 changed files with 4 additions and 24 deletions

View File

@@ -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)