mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
52564, r=naving sr=mscott. Fixing the new Folder dialog issue and taking care of long
folder names without the use of window.sizeToContent(). Thanks to disttsc@bart.nl for providing this patch
This commit is contained in:
parent
e19ce46ffc
commit
1e51410de5
@ -97,11 +97,4 @@ function SetFolderPicker(uri,pickerID)
|
||||
|
||||
picker.setAttribute("value",selectedValue);
|
||||
picker.setAttribute("uri",uri);
|
||||
|
||||
if (pickerID == "msgNewFolderPicker") {
|
||||
// XXX Ugly hack to make sizeToContent work, see bug 62987
|
||||
window.resizeTo(0,0);
|
||||
|
||||
window.sizeToContent();
|
||||
}
|
||||
}
|
||||
|
@ -48,19 +48,17 @@ function onLoad()
|
||||
if (arguments.dualUseFolders) {
|
||||
dialog.folderType = FOLDERS | MESSAGES;
|
||||
} else {
|
||||
window.resizeTo(250, 235);
|
||||
|
||||
// set our folder type by calling the default selected type's oncommand
|
||||
var selectedFolderType = document.getElementById("folderGroup").selectedItem;
|
||||
eval(selectedFolderType.getAttribute("oncommand"));
|
||||
|
||||
// show the section which allows us to select the folder type to create
|
||||
var newFolderTypeBox = document.getElementById("newFolderTypeBox");
|
||||
newFolderTypeBox.setAttribute("hidden", "false");
|
||||
newFolderTypeBox.removeAttribute("hidden");
|
||||
}
|
||||
|
||||
// XXX Ugly hack to make sizeToContent work, see bug 62987
|
||||
window.resizeTo(0, 0);
|
||||
|
||||
window.sizeToContent();
|
||||
moveToAlertPosition();
|
||||
doEnabling();
|
||||
doSetOKCancel(onOK, onCancel);
|
||||
|
@ -34,6 +34,7 @@
|
||||
title="&newFolderDialog.title;"
|
||||
align="vertical"
|
||||
class="dialog"
|
||||
width="200" height="180"
|
||||
onload="onLoad();">
|
||||
|
||||
<script type="text/javascript" src="chrome://global/content/strres.js"/>
|
||||
@ -54,7 +55,7 @@
|
||||
<text value="&description.label;" class="label" accesskey="&description.accesskey;" for="msgNewFolderPicker"/>
|
||||
|
||||
<box align="horizontal">
|
||||
<menu id="msgNewFolderPicker" oncommand="doEnabling(); window.sizeToContent();"/>
|
||||
<menu id="msgNewFolderPicker" oncommand="doEnabling();" crop="right" flex="1"/>
|
||||
<spring flex="1"/>
|
||||
</box>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user