Safe UI changes: fixed window title bug, 28921; fixed page colors dialog bug 27905; increased size of colorpicker buttons. r=slamm

This commit is contained in:
cmanske%netscape.com 2000-02-16 03:09:46 +00:00
Родитель 447ae38111
Коммит aa56163870
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -865,7 +865,8 @@ function EditorImageMap()
function EditorInsertHTML()
{
window.openDialog("chrome://editor/content/EdInsSrc.xul","_blank", "chrome,close,titlebar,modal", "");
// Resizing doesn't work!
window.openDialog("chrome://editor/content/EdInsSrc.xul","_blank", "chrome,close,titlebar,modal,resizeable=yes");
contentWindow.focus();
}
@ -1482,13 +1483,13 @@ function getColorAndSetColorWell(ColorPickerID, ColorWellID)
var color = colorPicker.getAttribute('color');
dump("setColor to: "+color+"\n");
if (colorWell)
if (colorWell && color)
{
// Use setAttribute so colorwell can be a XUL element, such as titledbutton
colorWell.setAttribute("style", "background-color: " + color);
}
}
//TODO: Trigger UI update to get color from the current caret/selection
return color;
}

Просмотреть файл

@ -38,6 +38,7 @@
onload="EditorOnLoad()"
onunload="EditorShutdown()"
onclose="return EditorCanClose()"
contenttitlesettting="true"
titlemodifier="&editorWindow.titlemodifier;"
titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
windowtype="composer:html"