Skip to content

Commit

Permalink
fixes #152
Browse files Browse the repository at this point in the history
overflow auto will mess up correctly behaving browsers showing two
vertical scrollbars in some cases
  • Loading branch information
jhchen committed Jul 1, 2014
1 parent 706bd30 commit 6397a1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ class Renderer
DOM.addEventListener(@container, 'focus', =>
@root.focus()
)
# Mobile Safari lets iframe content overflow
if DOM.isIOS()
DOM.addStyles(@container,
'overflow': 'auto'
'-webkit-overflow-scrolling': 'touch'
)
this.addStyles(DEFAULT_STYLES)
# Ensure user specified styles are added after modules'
_.defer(_.bind(this.addStyles, this, @options.styles)) if @options.styles?
Expand Down

0 comments on commit 6397a1e

Please sign in to comment.