Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing splitview behavior when the splitter is present and measured.

  • Loading branch information...
commit c12385ed0fb1598cf1a585e06bf7ed42dfda42d3 1 parent e9f44cc
@anutron anutron authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Behaviors/Behavior.SplitView.js
View
6 Source/Behaviors/Behavior.SplitView.js
@@ -67,8 +67,8 @@ Behavior.addGlobalFilters({
splitterHidden = true;
splitter.setStyle('display', 'block');
}
- if (left) styles['splitter-width'] = splitter.getSize().x;
- else styles['splitter-height'] = splitter.getSize().y;
+ if (left && splitter.style.width) styles['splitter-width'] = splitter.style.width;
+ else if (splitter.style.height) styles['splitter-height'] = splitter.style.height;
}
var whichSplit = left ? ART.SplitView : ART.SplitView.Vertical;
@@ -76,7 +76,7 @@ Behavior.addGlobalFilters({
var splitviewContent = {
resizable: element.hasClass("resizable"),
foldable: element.hasClass("foldable"),
- splitterContent: element.getChildren('.splitter_col')[0],
+ splitterContent: splitter,
styles: styles,
fixed: conf.fixed || 'left',
element: element,
Please sign in to comment.
Something went wrong with that request. Please try again.