瀏覽代碼

AMBARI-2496. Max numbers for graphs are sometime cut off and not fully visible. (Andrii Babiichuk via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1498610 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年之前
父節點
當前提交
9a17465077
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ambari-web/app/views/common/chart/linear_time.js

+ 4 - 0
ambari-web/app/views/common/chart/linear_time.js

@@ -349,6 +349,10 @@ App.ChartLinearTimeView = Ember.View.extend({
       if (graph_container.length) {
         this.draw(seriesData);
         this.set('hasData', true);
+          //move yAxis value lower to make them fully visible
+          if(!this.get('isPopup')) {
+              $('svg.y_axis text').attr('y',8);
+          }
       }
     }
     else {