[Common UI] Poll split pane position

Poll to position the splitter in an mct-split-pane, in
order to detect later style changes. #53.
This commit is contained in:
Victor Woeltjen
2015-09-11 13:12:24 -07:00
parent f17410a85b
commit 861ea8bab7
3 changed files with 16 additions and 7 deletions

View File

@@ -44,14 +44,11 @@ define(
*/
function MCTSplitter() {
function link(scope, element, attrs, mctSplitPane) {
var initialPosition;
var initialPosition,
activeInterval;
element.addClass("splitter");
// Now that we have the above class, the splitter width
// will have changed, so trigger a positioning update.
mctSplitPane.position(mctSplitPane.position());
scope.splitter = {
// Begin moving this splitter
startMove: function () {