Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
3e5c8c5c
Commit
3e5c8c5c
authored
Sep 28, 2015
by
Tobias
Browse files
fix collection view cell sizes
fix collection view size in slide over mode
parent
3931bbc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCLibraryViewController.m
View file @
3e5c8c5c
...
...
@@ -103,7 +103,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
-
(
void
)
setupContentViewWithContentInset
:(
BOOL
)
setInset
{
CGRect
viewDimensions
=
[
UI
Screen
mainScreen
]
.
bounds
;
CGRect
viewDimensions
=
[
UI
Application
sharedApplication
].
keyWindow
.
bounds
;
UIView
*
contentView
=
[[
UIView
alloc
]
initWithFrame
:
viewDimensions
];
contentView
.
autoresizingMask
=
UIViewAutoresizingFlexibleHeight
|
UIViewAutoresizingFlexibleWidth
;
contentView
.
backgroundColor
=
[
UIColor
VLCDarkBackgroundColor
];
...
...
@@ -785,7 +785,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
-
(
CGSize
)
collectionView
:(
UICollectionView
*
)
collectionView
layout
:(
UICollectionViewLayout
*
)
collectionViewLayout
sizeForItemAtIndexPath
:(
NSIndexPath
*
)
indexPath
{
const
CGFloat
maxCellWidth
=
300
.
0
;
const
CGFloat
aspectRatio
=
9
/
16
;
const
CGFloat
aspectRatio
=
9
.
0
/
16
.
0
;
CGRect
windowFrame
=
[
UIApplication
sharedApplication
].
keyWindow
.
frame
;
CGFloat
windowWidth
=
windowFrame
.
size
.
width
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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