From b20b7902548f3ef9a9115cfb3051e4c97c7eb010 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 8 May 2016 11:28:28 -0400 Subject: [PATCH] Revert "Removed the default box hugging priorities. We'll set them in group, tab, and window." This reverts commit a485319c8b09895548c6b738504d2fd511044c3d. --- darwin/box.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/darwin/box.m b/darwin/box.m index 3e2eb3cf..c41ab6f1 100644 --- a/darwin/box.m +++ b/darwin/box.m @@ -94,6 +94,10 @@ struct uiBox { self->primaryOrientation = NSLayoutConstraintOrientationHorizontal; self->secondaryOrientation = NSLayoutConstraintOrientationVertical; } + + // TODO default high? + self->horzHuggingPri = NSLayoutPriorityRequired; + self->vertHuggingPri = NSLayoutPriorityRequired; } return self; }