mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Fix file browser layout issue
Shrinking the file browser width so that the folder drop-down text is compressed would cause the layout to break if the width was then increased.
This commit is contained in:
@@ -24,6 +24,8 @@ static NSPopUpButton* OakCreateFolderPopUpButton ()
|
||||
NSPopUpButton* res = [[NSPopUpButton alloc] initWithFrame:NSZeroRect pullsDown:YES];
|
||||
[[res cell] setBackgroundStyle:NSBackgroundStyleLight];
|
||||
[res setContentCompressionResistancePriority:NSLayoutPriorityDefaultLow forOrientation:NSLayoutConstraintOrientationHorizontal];
|
||||
[res setContentHuggingPriority:NSLayoutPriorityFittingSizeCompression forOrientation:NSLayoutConstraintOrientationHorizontal];
|
||||
[res setContentHuggingPriority:NSLayoutPriorityDefaultLow forOrientation:NSLayoutConstraintOrientationVertical];
|
||||
[res setBordered:NO];
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user