Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
0ebb473e
Unverified
Commit
0ebb473e
authored
Nov 06, 2018
by
Daniel Jonathan
Committed by
GitHub
Nov 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1186 from OrkhanAlikhanov/snackbar-layout
Fixed SnackBar laid out incorrectly
parents
b95456d7
ad7a9aee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Sources/iOS/SnackbarController.swift
+10
-0
No files found.
Sources/iOS/SnackbarController.swift
View file @
0ebb473e
...
@@ -178,6 +178,16 @@ open class SnackbarController: TransitionController {
...
@@ -178,6 +178,16 @@ open class SnackbarController: TransitionController {
open
func
reload
()
{
open
func
reload
()
{
snackbar
.
frame
.
origin
.
x
=
snackbarEdgeInsets
.
left
snackbar
.
frame
.
origin
.
x
=
snackbarEdgeInsets
.
left
snackbar
.
frame
.
size
.
width
=
view
.
bounds
.
width
-
snackbarEdgeInsets
.
left
-
snackbarEdgeInsets
.
right
snackbar
.
frame
.
size
.
width
=
view
.
bounds
.
width
-
snackbarEdgeInsets
.
left
-
snackbarEdgeInsets
.
right
snackbar
.
frame
.
size
.
height
=
snackbar
.
heightPreset
.
rawValue
snackbar
.
layoutEdgeInsets
=
.
zero
if
.
bottom
==
snackbarAlignment
{
snackbar
.
frame
.
size
.
height
+=
bottomLayoutGuide
.
length
snackbar
.
layoutEdgeInsets
.
bottom
+=
bottomLayoutGuide
.
length
}
else
{
snackbar
.
frame
.
size
.
height
+=
topLayoutGuide
.
length
snackbar
.
layoutEdgeInsets
.
top
+=
topLayoutGuide
.
length
}
rootViewController
.
view
.
frame
=
view
.
bounds
rootViewController
.
view
.
frame
=
view
.
bounds
layoutSnackbar
(
status
:
snackbar
.
status
)
layoutSnackbar
(
status
:
snackbar
.
status
)
}
}
...
...
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