From 3086252d03127103f3a83e559dda65577f8ce3a8 Mon Sep 17 00:00:00 2001 From: Hallaathrad Date: Fri, 12 Feb 2016 21:11:01 -0500 Subject: [PATCH] Fix for bouncing sidecar's gap --- client/less/map.less | 27 +++++++++++++-------------- client/less/wiki.less | 17 +++++++++++------ client/main.js | 15 ++++++++++----- server/views/partials/footer.jade | 8 +++++--- server/views/wiki/show.jade | 1 + 5 files changed, 40 insertions(+), 28 deletions(-) diff --git a/client/less/map.less b/client/less/map.less index 7a1a2c8ad4..4b1a4df3f4 100644 --- a/client/less/map.less +++ b/client/less/map.less @@ -11,23 +11,18 @@ bottom: 0; right: 0; - overflow-x: hidden; - overflow-y: scroll; - -webkit-overflow-scrolling: touch; - display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction: row; - background-color: @body-bg; border-left: 1px solid #ddd; box-shadow: -12px 0 18px 0 rgba(50, 50, 50, 0.1); transition: transform 0.3s cubic-bezier(0.16, 0.22, 0.22, 1.7); - &.is-collapsed { - -webkit-transform: translateY(110%); + &.is-collapsed:not(.is-loading) { + -webkit-transform: translateX(110%); transform: translateX(110%); } @@ -45,14 +40,18 @@ background-color: @body-bg; } - - & > iframe { - flex: 1; - width: 100%; - height: 100%; - border: 0; - overflow: scroll; + .iframeWrapper { + height:100%; + width:100%; + overflow-x: hidden; + overflow-y: scroll; -webkit-overflow-scrolling: touch; + iframe { + flex: 1; + width: 100%; + height: 100%; + border: 0; + } } } diff --git a/client/less/wiki.less b/client/less/wiki.less index ece133a848..84817ac569 100644 --- a/client/less/wiki.less +++ b/client/less/wiki.less @@ -50,13 +50,18 @@ background-color: @body-bg; } - & > iframe { - flex: 1; - width: 100%; - height: 100%; - border: 0; - overflow: scroll; + .iframeWrapper { + height:100%; + width:100%; + overflow-x: hidden; + overflow-y: scroll; -webkit-overflow-scrolling: touch; + iframe { + flex: 1; + width: 100%; + height: 100%; + border: 0; + } } } diff --git a/client/main.js b/client/main.js index 6b83f3bc04..256b37765b 100644 --- a/client/main.js +++ b/client/main.js @@ -355,8 +355,11 @@ $(document).ready(function() { function showMap() { if (!main.isMapAsideLoad) { var mapAside = $('