GUI -- Bug fixes - Scroll bar doesn't appear on topo panels or table views, adjustHeight for topo panels no longer called after view is changed.
Change-Id: I9e55e1e985f8751c21c2e82cb35192b2d7c670e2
diff --git a/web/gui/src/main/webapp/app/fw/widget/table.css b/web/gui/src/main/webapp/app/fw/widget/table.css
index 4b56f2e..36ad139 100644
--- a/web/gui/src/main/webapp/app/fw/widget/table.css
+++ b/web/gui/src/main/webapp/app/fw/widget/table.css
@@ -33,6 +33,10 @@
overflow-y: scroll;
}
+div.summary-list div.table-body::-webkit-scrollbar {
+ display: none;
+}
+
div.summary-list tr.no-data td {
text-align: center;
font-style: italic;
diff --git a/web/gui/src/main/webapp/app/view/topo/topo.css b/web/gui/src/main/webapp/app/view/topo/topo.css
index 81212f3..515db25 100644
--- a/web/gui/src/main/webapp/app/view/topo/topo.css
+++ b/web/gui/src/main/webapp/app/view/topo/topo.css
@@ -106,6 +106,10 @@
overflow-y: scroll;
}
+.topo-p div.body::-webkit-scrollbar {
+ display: none;
+}
+
.topo-p svg {
display: inline-block;
width: 42px;
diff --git a/web/gui/src/main/webapp/app/view/topo/topoPanel.js b/web/gui/src/main/webapp/app/view/topo/topoPanel.js
index 9f82d89..1b05b02 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoPanel.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoPanel.js
@@ -38,7 +38,8 @@
// internal state
var useDetails = true, // should we show details if we have 'em?
haveDetails = false, // do we have details that we could show?
- sumFromTop; // summary panel distance from top of screen
+ sumFromTop, // summary panel distance from top of screen
+ unbindWatch;
// panels
var summary, detail;
@@ -177,7 +178,7 @@
}
function watchWindow() {
- $rootScope.$watchCollection(
+ unbindWatch = $rootScope.$watchCollection(
function () {
return {
h: $window.innerHeight,
@@ -465,6 +466,7 @@
detail.destroy();
detail = null;
haveDetails = false;
+ unbindWatch();
}
// ==========================