You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2016/04/22 19:56:35 UTC

qpid-dispatch git commit: DISPATCH-273: Force a window reflow event to get table to draw

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master fe485cdca -> 279c1b4c6


DISPATCH-273: Force a window reflow event to get table to draw


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/279c1b4c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/279c1b4c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/279c1b4c

Branch: refs/heads/master
Commit: 279c1b4c6354dd7ba1ccfb6f471c0957548dc1e1
Parents: fe485cd
Author: Ernest Allen <ea...@redhat.com>
Authored: Fri Apr 22 13:56:18 2016 -0400
Committer: Ernest Allen <ea...@redhat.com>
Committed: Fri Apr 22 13:56:18 2016 -0400

----------------------------------------------------------------------
 console/hawtio/src/main/webapp/plugin/js/qdrList.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/279c1b4c/console/hawtio/src/main/webapp/plugin/js/qdrList.js
----------------------------------------------------------------------
diff --git a/console/hawtio/src/main/webapp/plugin/js/qdrList.js b/console/hawtio/src/main/webapp/plugin/js/qdrList.js
index 5e22b3c..8e64dc2 100644
--- a/console/hawtio/src/main/webapp/plugin/js/qdrList.js
+++ b/console/hawtio/src/main/webapp/plugin/js/qdrList.js
@@ -363,9 +363,15 @@ var QDR = (function(QDR) {
 				})
 				$scope.detailsObject[attr] = row[attr].value;
 			})
+			setTimeout(applyDetails, 1, details)
+		}
+
+		var applyDetails = function (details) {
 			$scope.detailFields = details;
 			aggregateColumn();
 			$scope.$apply();
+			// ng-grid bug? the entire table doesn't always draw unless a reflow is triggered;
+			$(window).trigger('resize');
 		}
 
 		var restartUpdate = function () {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org