mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 15:43:48 +00:00
[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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user