diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-02-02 06:18:52 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-02-02 06:18:52 -0800 |
commit | 045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e (patch) | |
tree | 6d5478d73e0389f1f7da4bd7ca9adbe7b130a48c /tools/Sandcastle/Presentation/vs2005/Scripts/SplitScreen.js | |
parent | 522851c3311ffe8d413812e95c08c4c242b6256a (diff) | |
download | DotNetOpenAuth-045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e.zip DotNetOpenAuth-045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e.tar.gz DotNetOpenAuth-045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e.tar.bz2 |
More whitespace.
Diffstat (limited to 'tools/Sandcastle/Presentation/vs2005/Scripts/SplitScreen.js')
-rw-r--r-- | tools/Sandcastle/Presentation/vs2005/Scripts/SplitScreen.js | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tools/Sandcastle/Presentation/vs2005/Scripts/SplitScreen.js b/tools/Sandcastle/Presentation/vs2005/Scripts/SplitScreen.js index 1240154..3b04f0a 100644 --- a/tools/Sandcastle/Presentation/vs2005/Scripts/SplitScreen.js +++ b/tools/Sandcastle/Presentation/vs2005/Scripts/SplitScreen.js @@ -1,29 +1,29 @@ -
- function SplitScreen (nonScrollingRegionId, scrollingRegionId) {
-
- // store references to the two regions
- this.nonScrollingRegion = document.getElementById(nonScrollingRegionId);
- this.scrollingRegion = document.getElementById(scrollingRegionId);
-
- // set the scrolling settings
- document.body.style.margin = "0px";
- document.body.style.overflow = "hidden";
- this.scrollingRegion.style.overflow = "auto";
-
- // fix the size of the scrolling region
- this.resize(null);
-
- // add an event handler to resize the scrolling region when the window is resized
- registerEventHandler(window, 'resize', getInstanceDelegate(this, "resize"));
-
- }
-
- SplitScreen.prototype.resize = function(e) {
- var height = document.body.clientHeight - this.nonScrollingRegion.offsetHeight;
- if (height > 0) {
- this.scrollingRegion.style.height = height;
- } else {
- this.scrollingRegion.style.height = 0;
- }
- this.scrollingRegion.style.width = document.body.clientWidth;
- }
+ + function SplitScreen (nonScrollingRegionId, scrollingRegionId) { + + // store references to the two regions + this.nonScrollingRegion = document.getElementById(nonScrollingRegionId); + this.scrollingRegion = document.getElementById(scrollingRegionId); + + // set the scrolling settings + document.body.style.margin = "0px"; + document.body.style.overflow = "hidden"; + this.scrollingRegion.style.overflow = "auto"; + + // fix the size of the scrolling region + this.resize(null); + + // add an event handler to resize the scrolling region when the window is resized + registerEventHandler(window, 'resize', getInstanceDelegate(this, "resize")); + + } + + SplitScreen.prototype.resize = function(e) { + var height = document.body.clientHeight - this.nonScrollingRegion.offsetHeight; + if (height > 0) { + this.scrollingRegion.style.height = height; + } else { + this.scrollingRegion.style.height = 0; + } + this.scrollingRegion.style.width = document.body.clientWidth; + } |