mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
center dialog on the screen, coder=ben, r=morse
This commit is contained in:
parent
988bb610b4
commit
7d11612c9f
@ -46,6 +46,7 @@ function selectDialogOnLoad()
|
|||||||
}
|
}
|
||||||
|
|
||||||
var windowTitle = param.GetString( 0 );
|
var windowTitle = param.GetString( 0 );
|
||||||
|
dump("title: "+ windowTitle +"\n");
|
||||||
window.title = windowTitle;
|
window.title = windowTitle;
|
||||||
|
|
||||||
listBox = document.getElementById("list");
|
listBox = document.getElementById("list");
|
||||||
@ -67,6 +68,7 @@ function selectDialogOnLoad()
|
|||||||
// Move to the right location
|
// Move to the right location
|
||||||
moveToAlertPosition();
|
moveToAlertPosition();
|
||||||
param.SetInt(0, 1 );
|
param.SetInt(0, 1 );
|
||||||
|
centerWindowOnScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user