Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 443528
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.ui/web/orion/webui/splitter.js (-2 / +12 lines)
Lines 88-95 Link Here
88
88
89
			this.$splitter.classList.add("split"); //$NON-NLS-0$
89
			this.$splitter.classList.add("split"); //$NON-NLS-0$
90
			
90
			
91
			// Initialize for the currnet orientation / collapse direction
91
			// Initialize for the current orientation / collapse direction
92
			var orientation = options.vertical ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL;
92
			var vertical = localStorage.getItem(this._prefix+"/orientation"); //$NON-NLS-0$
93
			if (vertical) {
94
				var orientation = vertical === "vertical" ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL;
95
			} else {
96
				orientation = options.vertical ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL;
97
			}
93
			this.setOrientation(orientation);
98
			this.setOrientation(orientation);
94
			
99
			
95
			if (util.isIOS || util.isAndroid) {
100
			if (util.isIOS || util.isAndroid) {
Lines 118-124 Link Here
118
			}
123
			}
119
124
120
			this._vertical = vertical;
125
			this._vertical = vertical;
126
			
127
			// Store the orientation
128
			var orientationStr = this._vertical ? "vertical" : "horizontal"; //$NON-NLS-1$ //$NON-NLS-0$
129
			localStorage.setItem(this._prefix+"/orientation", orientationStr); //$NON-NLS-0$
121
130
131
			// Set up the CSS styling
122
			this.$splitter.style.position = "absolute"; //$NON-NLS-0$
132
			this.$splitter.style.position = "absolute"; //$NON-NLS-0$
123
			this.$trailing.style.position = "absolute"; //$NON-NLS-0$
133
			this.$trailing.style.position = "absolute"; //$NON-NLS-0$
124
			this.$leading.style.position = "absolute"; //$NON-NLS-0$
134
			this.$leading.style.position = "absolute"; //$NON-NLS-0$

Return to bug 443528