From dabcebd91c53a210b62495464d5fd267eaaa4811 Mon Sep 17 00:00:00 2001 From: Hallaathrad Date: Thu, 3 Mar 2016 19:00:47 -0500 Subject: [PATCH] scrolling issues be gone --- client/less/map.less | 40 ++++++++++++++++++------------- client/less/wiki.less | 24 +++++++------------ client/main.js | 8 +++---- server/views/map/show.jade | 1 + server/views/partials/footer.jade | 2 -- server/views/wiki/show.jade | 11 ++++----- 6 files changed, 42 insertions(+), 44 deletions(-) diff --git a/client/less/map.less b/client/less/map.less index 4b1a4df3f4..09af131ca8 100644 --- a/client/less/map.less +++ b/client/less/map.less @@ -40,18 +40,9 @@ background-color: @body-bg; } - .iframeWrapper { - height:100%; - width:100%; - overflow-x: hidden; - overflow-y: scroll; - -webkit-overflow-scrolling: touch; - iframe { - flex: 1; - width: 100%; - height: 100%; - border: 0; - } + iframe { + width: 100%; + height: 100%; } } @@ -139,10 +130,16 @@ } } +.mapWrapper { + position:absolute; + display: block; + height: 100%; + width: 100%; +} + .map-accordion { - margin: 135px auto 0; - width:700px; - overflow-y: auto; + width:700px; + margin:155px auto 0; position:relative; #nested { margin:0 15px; @@ -228,10 +225,19 @@ left:0; right:0; width:100%; - margin-top:180px; + top:195px; + bottom:0; + margin:0; + position:absolute; + overflow-x: hidden; + overflow-y: auto; + -webkit-overflow-scrolling: touch; h2 { margin:15px 0; padding:0; + &:first-of-type { + margin-top:0; + } > a { padding:10px 0; padding-left:50px; @@ -249,7 +255,7 @@ } } } - + .map-aside-action-item { display: -webkit-flex; display: flex; diff --git a/client/less/wiki.less b/client/less/wiki.less index c8d9ad96d0..b5731a84ef 100644 --- a/client/less/wiki.less +++ b/client/less/wiki.less @@ -6,7 +6,6 @@ #wikiFrame { width: 100%; height: 100%; - padding-top: 30px; top:0; bottom: 0; position: absolute; @@ -53,18 +52,13 @@ background-color: @body-bg; } - .iframeWrapper { - height:100%; - width:100%; - overflow-x: hidden; - overflow-y: scroll; - -webkit-overflow-scrolling: touch; - iframe { - flex: 1; - width: 100%; - height: 100%; - border: 0; - } + iframe { + width: 100%; + height: 100%; + top:0; + bottom:0; + position:absolute; + overflow: hidden; } } @@ -83,14 +77,14 @@ .wiki-aside-action-bar { position: absolute; top: 0; - right: 0; + right: 15px; display: -webkit-flex; display: flex; justify-content: flex-end; padding-bottom: 5px; - padding-right:10px; + padding-right:0px; padding-top:5px; z-index: 100; } diff --git a/client/main.js b/client/main.js index e38789ac6c..7ae02eef75 100644 --- a/client/main.js +++ b/client/main.js @@ -357,9 +357,9 @@ $(document).ready(function() { var mapAside = $('