[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.
This commit is contained in:
Victor Woeltjen
2015-01-28 16:34:03 -08:00
parent 06b599ee37
commit 8fecaaf4f8
2 changed files with 20 additions and 6 deletions

View File

@ -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();
}