We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10454d7 commit e3f96a1Copy full SHA for e3f96a1
1 file changed
TORoundedButton/TORoundedButton.m
@@ -231,14 +231,10 @@ - (void)layoutSubviews {
231
UIView *const contentView = _overrideContentView ?: _contentView;
232
contentView.frame = ({
233
CGRect frame = contentBounds;
234
-<<<<<<< Updated upstream
235
- frame.size = [contentView sizeThatFits:contentBounds.size];
236
-=======
237
const CGSize intrinsicContentSize = contentView.intrinsicContentSize;
238
if (intrinsicContentSize.width > 0.0f && intrinsicContentSize.height > 0.0f) {
239
frame.size = [contentView sizeThatFits:contentBounds.size];
240
}
241
->>>>>>> Stashed changes
242
frame.origin.x = (boundsSize.width - frame.size.width) * 0.5f;
243
frame.origin.y = (boundsSize.height - frame.size.height) * 0.5f;
244
CGRectIntegral(frame);
0 commit comments