Bri Prebilic Cole

GUI -- Bug fixes - Scroll bar doesn't appear on topo panels or table views, adju…

…stHeight for topo panels no longer called after view is changed.

Change-Id: I9e55e1e985f8751c21c2e82cb35192b2d7c670e2
...@@ -33,6 +33,10 @@ div.summary-list div.table-body { ...@@ -33,6 +33,10 @@ div.summary-list div.table-body {
33 overflow-y: scroll; 33 overflow-y: scroll;
34 } 34 }
35 35
36 +div.summary-list div.table-body::-webkit-scrollbar {
37 + display: none;
38 +}
39 +
36 div.summary-list tr.no-data td { 40 div.summary-list tr.no-data td {
37 text-align: center; 41 text-align: center;
38 font-style: italic; 42 font-style: italic;
......
...@@ -106,6 +106,10 @@ html[data-platform='iPad'] #topo-p-detail { ...@@ -106,6 +106,10 @@ html[data-platform='iPad'] #topo-p-detail {
106 overflow-y: scroll; 106 overflow-y: scroll;
107 } 107 }
108 108
109 +.topo-p div.body::-webkit-scrollbar {
110 + display: none;
111 +}
112 +
109 .topo-p svg { 113 .topo-p svg {
110 display: inline-block; 114 display: inline-block;
111 width: 42px; 115 width: 42px;
......
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
38 // internal state 38 // internal state
39 var useDetails = true, // should we show details if we have 'em? 39 var useDetails = true, // should we show details if we have 'em?
40 haveDetails = false, // do we have details that we could show? 40 haveDetails = false, // do we have details that we could show?
41 - sumFromTop; // summary panel distance from top of screen 41 + sumFromTop, // summary panel distance from top of screen
42 + unbindWatch;
42 43
43 // panels 44 // panels
44 var summary, detail; 45 var summary, detail;
...@@ -177,7 +178,7 @@ ...@@ -177,7 +178,7 @@
177 } 178 }
178 179
179 function watchWindow() { 180 function watchWindow() {
180 - $rootScope.$watchCollection( 181 + unbindWatch = $rootScope.$watchCollection(
181 function () { 182 function () {
182 return { 183 return {
183 h: $window.innerHeight, 184 h: $window.innerHeight,
...@@ -465,6 +466,7 @@ ...@@ -465,6 +466,7 @@
465 detail.destroy(); 466 detail.destroy();
466 detail = null; 467 detail = null;
467 haveDetails = false; 468 haveDetails = false;
469 + unbindWatch();
468 } 470 }
469 471
470 // ========================== 472 // ==========================
......