diff options
| author | “Ryder <“r@okfoc.us”> | 2016-04-04 17:31:47 -0400 |
|---|---|---|
| committer | “Ryder <“r@okfoc.us”> | 2016-04-04 17:31:47 -0400 |
| commit | e25e0775f6f73b4ecb2f19cf9c9f3e2916310905 (patch) | |
| tree | ee7c6dbb7414f3d1bbdabcc30029d7b118bc701e /public/assets/js/app.js | |
| parent | df7dc09cfe131150718479c739e2e53e8884ff47 (diff) | |
| parent | cd04c9cb601ccbeff533fa3e01237fb3ab4716bc (diff) | |
Merge branch 'master' of https://github.com/okfocus/portfolio
Diffstat (limited to 'public/assets/js/app.js')
| -rw-r--r-- | public/assets/js/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js index e34eb52..6fa5724 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -98,17 +98,19 @@ var app = (function() { app.resizeItems = function(){ var windowHeight = window.innerHeight + var navHeight = $("nav").height() if (is_iphone) { windowHeight -= 22 // account for lower bar window.scrollTo(0,0) + $(".menu").height( windowHeight + 16 - navHeight ) } $(".item").each(function(i){ var height = windowHeight - ($(this).find(".bottom").height() + 10) if (is_desktop) { - height -= $("nav").height() // account for top bar + height -= navHeight // account for top bar } $(".cell, .top, .previous, .next, .flickity-viewport", this).css({ 'height': height }) |
