File tree 3 files changed +11
-1
lines changed
FRLayeredNavigationController
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,9 @@ - (void)doViewLayout
116
116
if (self.layeredNavigationItem .hasBorder ) {
117
117
self.borderView .frame = borderFrame;
118
118
}
119
- self.contentView .frame = contentFrame;
119
+ if (self.layeredNavigationItem .autosizeContent ) {
120
+ self.contentView .frame = contentFrame;
121
+ }
120
122
}
121
123
122
124
Original file line number Diff line number Diff line change 48
48
BOOL _hasChrome;
49
49
BOOL _hasBorder;
50
50
BOOL _displayShadow;
51
+ BOOL _autosizeContent;
51
52
FRLayerController __weak * _layerController;
52
53
}
53
54
102
103
*/
103
104
@property (nonatomic , readwrite ) BOOL displayShadow;
104
105
106
+ /* *
107
+ * If the view should automatically size its content to the layer size
108
+ */
109
+ @property (nonatomic , readwrite ) BOOL autosizeContent;
110
+
105
111
/* *
106
112
* A custom bar button item displayed on the left of the navigation bar.
107
113
*/
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ - (id)init
50
50
self->_hasChrome = YES ;
51
51
self->_displayShadow = YES ;
52
52
self->_hasBorder = YES ;
53
+ self->_autosizeContent = YES ;
53
54
}
54
55
55
56
return self;
@@ -86,6 +87,7 @@ - (UIBarButtonItem *)rightBarButtonItem
86
87
@synthesize hasChrome = _hasChrome;
87
88
@synthesize hasBorder = _hasBorder;
88
89
@synthesize displayShadow = _displayShadow;
90
+ @synthesize autosizeContent = _autosizeContent;
89
91
@synthesize layerController = _layerController;
90
92
91
93
@end
You can’t perform that action at this time.
0 commit comments