From 8fecaaf4f813f9934ef60167bec32f92af58af14 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 28 Jan 2015 16:34:03 -0800 Subject: [PATCH] [Browse] Utilize splite pane directly Utilize split pane controller directly from browse template; quick fix for need to see more information about packet/point names, WTD-747. --- .../commonUI/browse/res/templates/browse.html | 15 +++++++++++---- .../src/controllers/SplitPaneController.js | 11 +++++++++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/platform/commonUI/browse/res/templates/browse.html b/platform/commonUI/browse/res/templates/browse.html index db8d015ac8..89fdc122b2 100644 --- a/platform/commonUI/browse/res/templates/browse.html +++ b/platform/commonUI/browse/res/templates/browse.html @@ -1,8 +1,10 @@
-
-
+
+
@@ -12,12 +14,17 @@
- +
+
- +
diff --git a/platform/commonUI/general/src/controllers/SplitPaneController.js b/platform/commonUI/general/src/controllers/SplitPaneController.js index 0f7b314f13..4a2e06bda8 100644 --- a/platform/commonUI/general/src/controllers/SplitPaneController.js +++ b/platform/commonUI/general/src/controllers/SplitPaneController.js @@ -6,9 +6,10 @@ define( "use strict"; function SplitPaneController() { - var minimum = 8, + var minimum = 120, maximum = 600, current = 200, + start = 200, style; function updateStyle() { @@ -21,10 +22,16 @@ define( style: function () { return style; }, + state: function () { + return current; + }, + startMove: function () { + start = current; + }, move: function (delta) { current = Math.min( maximum, - Math.max(minimum, current + delta) + Math.max(minimum, start + delta) ); updateStyle(); }