mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
a335b6a442
commit
8f31d0c93e
@ -1246,6 +1246,9 @@ function displayAttachmentsForExpandedView()
|
|||||||
expandedAttachmentBox.collapsed = false;
|
expandedAttachmentBox.collapsed = false;
|
||||||
attachmentSplitter.collapsed = false;
|
attachmentSplitter.collapsed = false;
|
||||||
|
|
||||||
|
if (gShowLargeAttachmentView)
|
||||||
|
expandedAttachmentBox.setAttribute("largeView", "true");
|
||||||
|
|
||||||
// Remove height attribute, or the attachments box could be drawn badly:
|
// Remove height attribute, or the attachments box could be drawn badly:
|
||||||
expandedAttachmentBox.removeAttribute("height");
|
expandedAttachmentBox.removeAttribute("height");
|
||||||
|
|
||||||
@ -1260,10 +1263,7 @@ function displayAttachmentsForExpandedView()
|
|||||||
attachmentView.setAttribute("class", "descriptionitem-iconic");
|
attachmentView.setAttribute("class", "descriptionitem-iconic");
|
||||||
|
|
||||||
if (gShowLargeAttachmentView)
|
if (gShowLargeAttachmentView)
|
||||||
{
|
|
||||||
attachmentView.setAttribute("largeView", "true");
|
attachmentView.setAttribute("largeView", "true");
|
||||||
attachmentView.setAttribute("orient", "vertical");
|
|
||||||
}
|
|
||||||
|
|
||||||
setApplicationIconForAttachment(attachment, attachmentView, gShowLargeAttachmentView);
|
setApplicationIconForAttachment(attachment, attachmentView, gShowLargeAttachmentView);
|
||||||
attachmentView.setAttribute("tooltip", "attachmentListTooltip");
|
attachmentView.setAttribute("tooltip", "attachmentListTooltip");
|
||||||
|
@ -102,10 +102,9 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
|
|||||||
width: 15em;
|
width: 15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachmentBox[largeView="true"]
|
#attachmentView[largeView="true"] .attachmentBox
|
||||||
{
|
{
|
||||||
-moz-box-align: center;
|
-moz-box-orient: vertical;
|
||||||
-moz-box-pack: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#attachmentView
|
#attachmentView
|
||||||
@ -115,6 +114,11 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
|
|||||||
-moz-border-radius: 7px;
|
-moz-border-radius: 7px;
|
||||||
margin: 0px 6px 6px 6px;
|
margin: 0px 6px 6px 6px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
min-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#attachmentView[largeView="true"]
|
||||||
|
{
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,13 +100,17 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
|
|||||||
width: 15em;
|
width: 15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachmentBox[largeView="true"]
|
#attachmentView[largeView="true"] .attachmentBox
|
||||||
{
|
{
|
||||||
-moz-box-align: center;
|
-moz-box-orient: vertical;
|
||||||
-moz-box-pack: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#attachmentView
|
#attachmentView
|
||||||
|
{
|
||||||
|
min-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#attachmentView[largeView="true"]
|
||||||
{
|
{
|
||||||
min-height: 55px;
|
min-height: 55px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user