Bug 431173 - On Drag start Bookmark item in right pane of Library window, list items are shifted. (for marco@supereva.it, r=mano, ui-r+a=beltzner)

This commit is contained in:
dietrich@mozilla.com 2008-05-01 14:02:02 -07:00
Родитель e9aeb9c922
Коммит 4ace5362c0
2 изменённых файлов: 2 добавлений и 5 удалений

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

@ -645,7 +645,6 @@ var PlacesOrganizer = {
if (aSelectedNode && !PlacesUtils.nodeIsSeparator(aSelectedNode)) { if (aSelectedNode && !PlacesUtils.nodeIsSeparator(aSelectedNode)) {
detailsDeck.selectedIndex = 1; detailsDeck.selectedIndex = 1;
infoBox.hidden = false;
// Using the concrete itemId is arguably wrong. The bookmarks API // Using the concrete itemId is arguably wrong. The bookmarks API
// does allow setting properties for folder shortcuts as well, but since // does allow setting properties for folder shortcuts as well, but since
// the UI does not distinct between the couple, we better just show // the UI does not distinct between the couple, we better just show
@ -666,9 +665,6 @@ var PlacesOrganizer = {
} }
else { else {
detailsDeck.selectedIndex = 0; detailsDeck.selectedIndex = 0;
// The details deck has the height of its biggest child, so we hide the
// infoBox to allow it shrinking when there is no selection.
infoBox.hidden = true;
var selectItemDesc = document.getElementById("selectItemDescription"); var selectItemDesc = document.getElementById("selectItemDescription");
var itemsCountLabel = document.getElementById("itemsCountText"); var itemsCountLabel = document.getElementById("itemsCountText");
var rowCount = this._content.treeBoxObject.view.rowCount; var rowCount = this._content.treeBoxObject.view.rowCount;

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

@ -493,7 +493,7 @@
</treecols> </treecols>
<treechildren flex="1"/> <treechildren flex="1"/>
</tree> </tree>
<hbox id="infoPaneBox"> <hbox id="infoPaneBox" style="height: 11em;">
<deck flex="1" id="detailsDeck"> <deck flex="1" id="detailsDeck">
<vbox id="itemsCountBox" align="center"> <vbox id="itemsCountBox" align="center">
<spacer flex="3"/> <spacer flex="3"/>
@ -506,6 +506,7 @@
</vbox> </vbox>
<vbox id="infoBox" minimal="true"> <vbox id="infoBox" minimal="true">
<vbox id="editBookmarkPanelContent"/> <vbox id="editBookmarkPanelContent"/>
<spacer flex="1"/>
<hbox> <hbox>
<button type="image" id="infoBoxExpander" <button type="image" id="infoBoxExpander"
lesslabel="&detailsPane.less.label;" lesslabel="&detailsPane.less.label;"