More UI Tweaks
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/2a5e411d Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/2a5e411d Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/2a5e411d Branch: refs/heads/blur-console-v2 Commit: 2a5e411d7ced344d722e378fc81c00eaeb7249e4 Parents: 251f613 Author: Chris Rohr <[email protected]> Authored: Tue Nov 12 22:27:57 2013 -0500 Committer: Chris Rohr <[email protected]> Committed: Tue Nov 12 22:27:57 2013 -0500 ---------------------------------------------------------------------- .../resources/org/apache/blur/console/webapp/js/directives.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2a5e411d/contrib/blur-console/src/main/resources/org/apache/blur/console/webapp/js/directives.js ---------------------------------------------------------------------- diff --git a/contrib/blur-console/src/main/resources/org/apache/blur/console/webapp/js/directives.js b/contrib/blur-console/src/main/resources/org/apache/blur/console/webapp/js/directives.js index 4eeb308..1a609ca 100644 --- a/contrib/blur-console/src/main/resources/org/apache/blur/console/webapp/js/directives.js +++ b/contrib/blur-console/src/main/resources/org/apache/blur/console/webapp/js/directives.js @@ -52,6 +52,8 @@ blurApp.directive('piechart', ['flotrService', '$window', function(flotrService, element.css('min-weight', 200); element.css('max-height', 500); element.css('max-width', 500); + element.css('margin-left', 'auto'); + element.css('margin-right', 'auto'); Flotr.draw(element[0], data, { HtmlText: false, @@ -114,6 +116,8 @@ blurApp.directive('stackedbarchart', ['flotrService', '$window', function(flotrS element.css('min-weight', 200); element.css('max-height', 500); element.css('max-width', 500); + element.css('margin-left', 'auto'); + element.css('margin-right', 'auto'); Flotr.draw(element[0], data, { title: scope.title,
