Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-596 - added constraining to viewport on all panels

Taylor Gunnoe6127b1d529b4
diff --git a/.gitignore b/.gitignore
index 04ee454ec..f9160330e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@
wv.tar
wv.tar
.DS_Store
+*~
diff --git a/src/js/Worldview.js b/src/js/Worldview.js
index 84c19286b..55fb9bee5 100644
--- a/src/js/Worldview.js
+++ b/src/js/Worldview.js
@@ -174,7 +174,8 @@
o = new YAHOO.widget.Panel("WVerror", {
width: "300px",
zIndex: 1020,
- visible: false
+ visible: false,
+ constraintoviewport: true
});
o.setHeader('Warning');
o.setBody("An unexpected error has occurred.<br/><br/>" + message);
@@ -203,7 +204,8 @@
o = new YAHOO.widget.Panel("WVerror", {
width: "300px",
zIndex: 1020,
- visible: false
+ visible: false,
+ constraintoviewport: true
});
title = title || "Notice";
o.setHeader(title);
diff --git a/src/js/Worldview/About.js b/src/js/Worldview/About.js
index 49c346e9b..f4934bde6 100644
--- a/src/js/Worldview/About.js
+++ b/src/js/Worldview/About.js
@@ -45,7 +45,8 @@ $(function() {
if ( !overlay ) {
overlay = new YAHOO.widget.Panel("panel1", {
zIndex:1020,
- visible:false
+ visible:false,
+ constraintoviewport: true
});
//=============================================================
diff --git a/src/js/Worldview/DataDownload/DownloadListPanel.js b/src/js/Worldview/DataDownload/DownloadListPanel.js
index 4268fd1cc..3606e0f6d 100644
--- a/src/js/Worldview/DataDownload/DownloadListPanel.js
+++ b/src/js/Worldview/DataDownload/DownloadListPanel.js
@@ -42,7 +42,8 @@ Worldview.DataDownload.DownloadListPanel = function(config, model) {
width: "600px",
height: "400px",
zIndex: 1020,
- visible: false
+ visible: false,
+ constraintoviewport: true
});
panel.setHeader("Download Links");
}
diff --git a/src/js/Worldview/DataDownload/SelectionListPanel.js b/src/js/Worldview/DataDownload/SelectionListPanel.js
index 854d00ef1..d2804e112 100644
--- a/src/js/Worldview/DataDownload/SelectionListPanel.js
+++ b/src/js/Worldview/DataDownload/SelectionListPanel.js
@@ -24,7 +24,8 @@ Worldview.DataDownload.SelectionListPanel = function(model, results) {
height: "400px",
zIndex: 1020,
visible: false,
- close: false
+ close: false,
+ constraintoviewport: true
});
panel.setHeader("Select data");
@@ -109,4 +110,4 @@ Worldview.DataDownload.SelectionListPanel = function(model, results) {
return self;
-};
\ No newline at end of file
+};
diff --git a/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js b/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js
index e0a4312bc..6552638bc 100644
--- a/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js
+++ b/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js
@@ -147,7 +147,8 @@ Worldview.Widget.ArcticProjectionChangeNotification = function(config, bank) {
width: "300px",
zIndex: 1020,
visible: false,
- modal: true
+ modal: true,
+ constraintoviewport: true
});
dialog.setHeader("Notice");
var body = [
diff --git a/src/js/Worldview/Widget/Permalink.js b/src/js/Worldview/Widget/Permalink.js
index c0fb3cebd..47bdb923a 100644
--- a/src/js/Worldview/Widget/Permalink.js
+++ b/src/js/Worldview/Widget/Permalink.js
@@ -30,7 +30,8 @@ Worldview.Widget.Permalink = (function() {
permOverlay = new YAHOO.widget.Panel("panel_perm", {
width: "300px",
zIndex: 1020,
- visible: false
+ visible: false,
+ constraintoviewport: true
});
var item = "<div id='permpanel' >" +
"<!-- <h3>Permalink:</h3> -->"+
diff --git a/src/js/list.js b/src/js/list.js
index 0cd50d723..9f6cb3bb8 100644
--- a/src/js/list.js
+++ b/src/js/list.js
@@ -320,7 +320,8 @@ SOTE.widget.List.prototype._update = function(){
o = new YAHOO.widget.Panel("WVerror", {
width: "600px",
zIndex: 1020,
- visible: false
+ visible: false,
+ constraintoviewport: true
});
title = title || "Notice";
o.setHeader('<b>Why are these layers not available for downloading?</b>');
diff --git a/src/js/util.js b/src/js/util.js
index 093c06b5f..3aedb4e20 100644
--- a/src/js/util.js
+++ b/src/js/util.js
@@ -30,7 +30,7 @@ SOTE.util.extractFromQuery = function(key,qs){
};
SOTE.util.throwError = function(errorTextHTML){
- o = new YAHOO.widget.Panel("WVerror", {width:"300px", zIndex:1020, visible:false } );
+ o = new YAHOO.widget.Panel("WVerror", {width:"300px", zIndex:1020, visible:false, constraintoviewport: true } );
o.setHeader('Warning');
o.setBody(errorTextHTML);
o.render(document.body);