[notch offset] ok, we should take left insets only
This commit is contained in:
1 parent
cb425a4474
commit
cddd176a27
1 file changed
+1
-1
@@ -83,7 +83,7 @@ int notchOffset;
|
||||
savedHeight = roundf(height * screenScale);
|
||||
|
||||
// get both left and right for just in case orientation is changed
|
||||
notchOffset = insets.left + insets.right;
|
||||
notchOffset = insets.left;
|
||||
width = width - notchOffset * 2;
|
||||
|
||||
touchView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, width, height)];
|
||||
|
||||
Reference in new issue
Block a user