Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
a904f2a3
Commit
a904f2a3
authored
9 years ago
by
Rune Madsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use layout guides for inset instead
parent
d1dc5447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
BUYProductViewController.m
...DK/Mobile Buy SDK/Product View/BUYProductViewController.m
+5
-3
No files found.
Mobile Buy SDK/Mobile Buy SDK/Product View/BUYProductViewController.m
View file @
a904f2a3
...
...
@@ -460,9 +460,11 @@ CGFloat const BUYMaxProductViewHeight = 640.0;
[(
BUYNavigationController
*
)
self
.
navigationController
updateCloseButtonImageWithTintColor
:
YES
duration
:
0
];
self
.
navigationBar
.
alpha
=
1
;
self
.
navigationBarTitle
.
alpha
=
1
;
// When using 3D Touch, the initial height of the navigation bar (without UIStatusBar) doesn't match the final height (with UIStatusBar)
// so we're forced to set it manually in case it's not tall enough. Of course, this is only valid for products with no product images.
[
self
.
productView
setInsets
:
UIEdgeInsetsMake
(
MAX
(
CGRectGetHeight
(
self
.
navigationBar
.
bounds
),
64
),
0
,
0
,
0
)
appendToCurrentInset
:
YES
];
CGFloat
topInset
=
0
;
if
(
self
.
presentingViewController
)
{
topInset
=
CGRectGetHeight
([[(
UINavigationController
*
)
self
.
presentingViewController
navigationBar
]
bounds
])
+
self
.
presentingViewController
.
topLayoutGuide
.
length
;
}
[
self
.
productView
setInsets
:
UIEdgeInsetsMake
(
topInset
,
0
,
0
,
0
)
appendToCurrentInset
:
YES
];
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment