Bug #370792 --> make the attachment pane support both small and large attachment icon dislay. r= wayne woods <w.woods@optusnet.com.au>

This commit is contained in:
scott%scott-macgregor.org 2007-02-25 19:41:10 +00:00
parent a335b6a442
commit 8f31d0c93e
3 changed files with 17 additions and 9 deletions

View File

@ -1245,6 +1245,9 @@ function displayAttachmentsForExpandedView()
// the attachment view and we end up with a box that is too tall.
expandedAttachmentBox.collapsed = false;
attachmentSplitter.collapsed = false;
if (gShowLargeAttachmentView)
expandedAttachmentBox.setAttribute("largeView", "true");
// Remove height attribute, or the attachments box could be drawn badly:
expandedAttachmentBox.removeAttribute("height");
@ -1260,10 +1263,7 @@ function displayAttachmentsForExpandedView()
attachmentView.setAttribute("class", "descriptionitem-iconic");
if (gShowLargeAttachmentView)
{
attachmentView.setAttribute("largeView", "true");
attachmentView.setAttribute("orient", "vertical");
}
setApplicationIconForAttachment(attachment, attachmentView, gShowLargeAttachmentView);
attachmentView.setAttribute("tooltip", "attachmentListTooltip");

View File

@ -102,10 +102,9 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
width: 15em;
}
.attachmentBox[largeView="true"]
#attachmentView[largeView="true"] .attachmentBox
{
-moz-box-align: center;
-moz-box-pack: center;
-moz-box-orient: vertical;
}
#attachmentView
@ -115,6 +114,11 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
-moz-border-radius: 7px;
margin: 0px 6px 6px 6px;
padding: 4px;
min-height: 30px;
}
#attachmentView[largeView="true"]
{
min-height: 60px;
}

View File

@ -100,13 +100,17 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
width: 15em;
}
.attachmentBox[largeView="true"]
#attachmentView[largeView="true"] .attachmentBox
{
-moz-box-align: center;
-moz-box-pack: center;
-moz-box-orient: vertical;
}
#attachmentView
{
min-height: 30px;
}
#attachmentView[largeView="true"]
{
min-height: 55px;
}