This commit is contained in:
scott%scott-macgregor.org 2006-08-25 20:20:50 +00:00
Родитель b9b4a5491b
Коммит ef5283c69a
1 изменённых файлов: 20 добавлений и 20 удалений

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

@ -702,12 +702,12 @@ function UpdateMailPaneConfig(aMsgWindowInitialized) {
/* this code doesn't work yet, see the comment below about kWideThreadPaneConfig /* this code doesn't work yet, see the comment below about kWideThreadPaneConfig
if (gCurrentPaneConfig == kWideThreadPaneConfig) if (gCurrentPaneConfig == kWideThreadPaneConfig)
{ {
threadPaneSplitter.setAttribute("orient", "vertical"); threadPaneSplitter.setAttribute("orient", "vertical");
mailContentWrapper.setAttribute("orient", "horizontal"); mailContentWrapper.setAttribute("orient", "horizontal");
mailContentWrapper.removeChild(threadPaneSplitter); mailContentWrapper.removeChild(threadPaneSplitter);
mailContentWrapper.removeChild(messagePaneBox); mailContentWrapper.removeChild(messagePaneBox);
messagesBox.insertBefore(threadPaneSplitter, messagesBox.firstChild); messagesBox.insertBefore(threadPaneSplitter, messagesBox.firstChild);
messagesBox.insertBefore(messengerBox, messagesBox.firstChild); messagesBox.insertBefore(messengerBox, messagesBox.firstChild);
messagePaneBox.removeAttribute("flex"); messagePaneBox.removeAttribute("flex");
msgPaneReRooted = true; msgPaneReRooted = true;
} }
@ -737,21 +737,21 @@ function UpdateMailPaneConfig(aMsgWindowInitialized) {
// finally, make sure mailContentWrapper has the correct orientation // finally, make sure mailContentWrapper has the correct orientation
mailContentWrapper.setAttribute("orient", "horizontal"); mailContentWrapper.setAttribute("orient", "horizontal");
} }
else if (paneConfig == kWideThreadPaneConfig) else if (paneConfig == kWideThreadPaneConfig)
{ {
// kWideThreadPaneConfig is a easter egg layout which isn't fully polished. So // kWideThreadPaneConfig is a easter egg layout which isn't fully polished. So
// the menu item for selecting it is hidden from the UI. // the menu item for selecting it is hidden from the UI.
// If you change from kWideThreadPaneConfig to another layout, you have to restart // If you change from kWideThreadPaneConfig to another layout, you have to restart
// Thunderbird before things look right. Loading account central looks really bad. // Thunderbird before things look right. Loading account central looks really bad.
// When you change into this layout, the thread pane gets re-rooted and we don't // When you change into this layout, the thread pane gets re-rooted and we don't
// handle that properly, the user must re-select the folder before the thread pane // handle that properly, the user must re-select the folder before the thread pane
// relists the messages in it. // relists the messages in it.
mailContentWrapper.insertBefore(threadPaneSplitter, mailContentWrapper.firstChild); mailContentWrapper.insertBefore(threadPaneSplitter, mailContentWrapper.firstChild);
mailContentWrapper.insertBefore(messengerBox, mailContentWrapper.firstChild); mailContentWrapper.insertBefore(messengerBox, mailContentWrapper.firstChild);
mailContentWrapper.setAttribute("orient", "vertical"); mailContentWrapper.setAttribute("orient", "vertical");
threadPaneSplitter.setAttribute("orient", "vertical"); threadPaneSplitter.setAttribute("orient", "vertical");
messagePaneBox.setAttribute("flex", "1"); messagePaneBox.setAttribute("flex", "1");
} }
// re-rooting the message pane causes the docshell to get destroyed // re-rooting the message pane causes the docshell to get destroyed