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:
David Howden
2013-07-23 18:13:25 +10:00
parent 83946bd3cf
commit 274f73b7de

View File

@@ -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;
}