Bug 759619. Center webapp on screen on first run, and persist size and position values afterwards. r=myk

This commit is contained in:
Felipe Gomes 2012-06-28 22:27:09 -07:00
parent c4d15f545f
commit d47c4920d4
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@ CommandLineHandler.prototype = {
Services.ww.openWindow(null,
"chrome://webapprt/content/webapp.xul",
"_blank",
"chrome,dialog=no,resizable,scrollbars",
"chrome,dialog=no,resizable,scrollbars,centerscreen",
[]);
// Initialize window-independent handling of webapps- notifications

View File

@ -14,8 +14,11 @@
]>
<window windowtype="webapprt:webapp"
id="webapprt-window"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="1024" height="768">
width="1024" height="768"
persist="screenX screenY width height sizemode"
>
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
<script type="application/javascript" src="chrome://webapprt/content/webapp.js"/>