Community
Participate
Working Groups
this.$splitter.classList.add("split"); //$NON-NLS-0$
// Initialize for the currnet orientation / collapse direction
// Initialize for the current orientation / collapse direction
var orientation = options.vertical ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL;
var vertical = localStorage.getItem(this._prefix+"/orientation"); //$NON-NLS-0$
if (vertical) {
var orientation = vertical === "vertical" ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL;
} else {
orientation = options.vertical ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL;
}
this.setOrientation(orientation);
if (util.isIOS || util.isAndroid) {
this._vertical = vertical;
// Store the orientation
var orientationStr = this._vertical ? "vertical" : "horizontal"; //$NON-NLS-1$ //$NON-NLS-0$
localStorage.setItem(this._prefix+"/orientation", orientationStr); //$NON-NLS-0$
// Set up the CSS styling
this.$splitter.style.position = "absolute"; //$NON-NLS-0$
this.$trailing.style.position = "absolute"; //$NON-NLS-0$
this.$leading.style.position = "absolute"; //$NON-NLS-0$