GUI -- Resize and table directives clean up. Veil service given init function and unit tests.
Change-Id: I7c29db8f2c79e83e880c96854297c4a432e12d48
diff --git a/web/gui/src/main/webapp/app/fw/widget/table.js b/web/gui/src/main/webapp/app/fw/widget/table.js
index 0ed0b42..b4b1e4c 100644
--- a/web/gui/src/main/webapp/app/fw/widget/table.js
+++ b/web/gui/src/main/webapp/app/fw/widget/table.js
@@ -155,11 +155,10 @@
fs = _fs_;
mast = _mast_;
- var w = angular.element($window),
- table = d3.select(element[0]),
+ var table = d3.select(element[0]),
canAdjust = false;
- scope.$watch(function () {
+ scope.$watchCollection(function () {
return {
h: $window.innerHeight,
w: $window.innerWidth
@@ -182,10 +181,6 @@
if (canAdjust) {
adjustTable(table, wWidth, wHeight);
}
- }, true);
-
- w.bind('onos-fixed-header', function () {
- scope.$apply();
});
};
}])