Comment and clean up the code. Readd flex/width when moving the item back to the palette to ensure proper spacing.

This commit is contained in:
blakeross%telocity.com 2002-08-07 05:27:00 +00:00
Родитель 603c0d456d
Коммит 2ccc1f4481
2 изменённых файлов: 15 добавлений и 20 удалений

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

@ -247,7 +247,7 @@ var paletteDNDObserver = {
while (toolbarItem) {
if (toolbarItem.firstChild.id == itemID) {
item = toolbarItem;
return;
break;
}
toolbarItem = toolbarItem.nextSibling;
}

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

@ -49,8 +49,8 @@
</description>
<toolbox id="cloned-bar-container"
ondragover="nsDragAndDrop.dragOver(event, dropObserver)"
ondragdrop="nsDragAndDrop.drop(event, dropObserver);"
ondragover="nsDragAndDrop.dragOver(event, toolbarDNDObserver)"
ondragdrop="nsDragAndDrop.drop(event, toolbarDNDObserver);"
ondragexit="gCurrentDragOverItem.removeAttribute('dragactive');"/>
<separator class="groove"/>
@ -60,27 +60,22 @@
</description>
<vbox flex="1" id="palette-box"
ondragover="nsDragAndDrop.dragOver(event, paletteDropObserver);"
ondragdrop="nsDragAndDrop.drop(event, paletteDropObserver);"/>
ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);"/>
<separator class="groove"/>
<box align="center">
<label value="&show.label;"/>
<menulist>
<menupopup>
<menuitem label="&iconsAndText.label;"/>
<menuitem label="&icons.label;"/>
<menuitem label="&text.label;"/>
</menupopup>
</menulist>
<checkbox label="&useSmallIcons.label;"/>
<button label="&restoreDefaultSet.label;" oncommand="resetToDefault()"/>
<spacer flex="1"/>
<image id="trash-can"
ondragover="nsDragAndDrop.dragOver(event, trashObserver);"
ondragdrop="nsDragAndDrop.drop(event, trashObserver);"
ondragexit="this.removeAttribute('dragactive');"/>
<label value="&show.label;"/>
<menulist>
<menupopup>
<menuitem label="&iconsAndText.label;"/>
<menuitem label="&icons.label;"/>
<menuitem label="&text.label;"/>
</menupopup>
</menulist>
<checkbox label="&useSmallIcons.label;"/>
<button label="&restoreDefaultSet.label;" oncommand="resetToDefault()"/>
</box>
<separator class="groove"/>