You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by ss...@apache.org on 2015/02/12 08:27:54 UTC

[08/12] tez git commit: TEZ-2068. Tez UI: Dag view should use full window height, disable webuiservice in localmode. (Sreenath Somarajapuram via hitesh) Add missing file.

TEZ-2068. Tez UI: Dag view should use full window height, disable webuiservice in localmode. (Sreenath Somarajapuram via hitesh)
Add missing file.


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/59533063
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/59533063
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/59533063

Branch: refs/heads/TEZ-2003
Commit: 595330638174f0729eaf0e12872ebdd955703d80
Parents: 758c26f
Author: Hitesh Shah <hi...@apache.org>
Authored: Wed Feb 11 12:47:43 2015 -0800
Committer: Hitesh Shah <hi...@apache.org>
Committed: Wed Feb 11 12:47:43 2015 -0800

----------------------------------------------------------------------
 .../webapp/app/scripts/views/dag-view-view.js   | 35 ++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/59533063/tez-ui/src/main/webapp/app/scripts/views/dag-view-view.js
----------------------------------------------------------------------
diff --git a/tez-ui/src/main/webapp/app/scripts/views/dag-view-view.js b/tez-ui/src/main/webapp/app/scripts/views/dag-view-view.js
new file mode 100644
index 0000000..f576edf
--- /dev/null
+++ b/tez-ui/src/main/webapp/app/scripts/views/dag-view-view.js
@@ -0,0 +1,35 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+App.DagViewView = Ember.View.extend({
+  setHeight: function () {
+    var container = $('.dag-view-component-container');
+    container.height(
+      Math.max(
+        // 50 pixel is left at the bottom
+        $(window).height() - container.offset().top - 50,
+        450 // Minimum dag view component container height
+      )
+    );
+  },
+
+  didInsertElement: function() {
+    $(window).resize(this.setHeight.bind(this));
+    this.setHeight();
+  },
+});
\ No newline at end of file