[fusion-commits] r2740 - in trunk/widgets: . QuickPlot
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Jun 26 00:46:57 PDT 2013
Author: jng
Date: 2013-06-26 00:46:57 -0700 (Wed, 26 Jun 2013)
New Revision: 2740
Modified:
trunk/widgets/QuickPlot.js
trunk/widgets/QuickPlot/QuickPlotPanel.js
Log:
Quick Plot fixes:
- window.open not using the default sFeatures
- Use a sane default width/height for sFeatures so that a popup window does not fill the screen
- Focus the QuickPlotPanel on load, allowing for subsequent invocations to auto-focus
Modified: trunk/widgets/QuickPlot/QuickPlotPanel.js
===================================================================
--- trunk/widgets/QuickPlot/QuickPlotPanel.js 2013-06-26 03:00:37 UTC (rev 2739)
+++ trunk/widgets/QuickPlot/QuickPlotPanel.js 2013-06-26 07:46:57 UTC (rev 2740)
@@ -119,6 +119,8 @@
document.getElementById("SubTitleCtrl").style.display = "none";
document.getElementById("SubTitleLabel").style.display = "none";
}
+
+ this.focus();
}
function setAdvancedOptionsUI(enabled)
Modified: trunk/widgets/QuickPlot.js
===================================================================
--- trunk/widgets/QuickPlot.js 2013-06-26 03:00:37 UTC (rev 2739)
+++ trunk/widgets/QuickPlot.js 2013-06-26 07:46:57 UTC (rev 2740)
@@ -16,7 +16,7 @@
{
isExclusive: false,
uiClass: Jx.Button,
- sFeatures : 'menubar=no,location=no,resizable=no,status=no',
+ sFeatures : 'width=350,height=500,menubar=no,location=no,resizable=no,status=no',
options : {},
//The legal disclaimer text to display in the preview and final printout
disclaimer: "",
@@ -188,7 +188,7 @@
}
else
{
- window.open(url, this.sTarget, this.sWinFeatures);
+ window.open(url, this.sTarget, this.sFeatures);
}
}
More information about the fusion-commits
mailing list