Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 247029 Details for
Bug 443528
splitter persist orientation in local storage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Stores the orientation locally
Bug443528.txt (text/plain), 1.49 KB, created by
Eric Moffatt
on 2014-09-12 14:59:22 EDT
(
hide
)
Description:
Stores the orientation locally
Filename:
MIME Type:
Creator:
Eric Moffatt
Created:
2014-09-12 14:59:22 EDT
Size:
1.49 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/webui/splitter.js b/bundles/org.eclipse.orion.client.ui/web/orion/webui/splitter.js >index dd0f70e..838f12f 100644 >--- a/bundles/org.eclipse.orion.client.ui/web/orion/webui/splitter.js >+++ b/bundles/org.eclipse.orion.client.ui/web/orion/webui/splitter.js >@@ -88,8 +88,13 @@ > > this.$splitter.classList.add("split"); //$NON-NLS-0$ > >- // Initialize for the currnet orientation / collapse direction >- var orientation = options.vertical ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL; >+ // Initialize for the current orientation / collapse direction >+ 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) { >@@ -118,7 +123,12 @@ > } > > 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$
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 443528
: 247029