Patch to bug 121176 no longer works on trunk, trying to fix r=Mnyromyr rs=dmose

This commit is contained in:
neil%parkwaycc.co.uk 2005-11-02 00:46:27 +00:00
Родитель 1e91350bb2
Коммит f1aeee1ad2
4 изменённых файлов: 8 добавлений и 17 удалений

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

@ -784,7 +784,8 @@ function ChangeMessagePaneVisibility(now_hidden)
// so we take it as it is
gDBView.suppressMsgDisplay = now_hidden;
// set the subject, uncollapsing won't automatically do this
gDBView.reloadMessage();
gDBView.loadMessageByUrl("about:blank");
gDBView.selectionChanged();
}
var event = document.createEvent('Events');
if (now_hidden) {
@ -796,20 +797,11 @@ function ChangeMessagePaneVisibility(now_hidden)
document.getElementById("messengerWindow").dispatchEvent(event);
}
function OnMouseUpThreadAndMessagePaneSplitter()
function OnClickThreadAndMessagePaneSplitter()
{
// the collapsed state is the state after we released the mouse
// so we take it as it is
ChangeMessagePaneVisibility(IsMessagePaneCollapsed());
}
function OnClickThreadAndMessagePaneSplitterGrippy()
{
// the collapsed state is the state when we clicked on the grippy
// not when afterwards, so we need to reverse this value
ChangeMessagePaneVisibility(!IsMessagePaneCollapsed());
}
function FolderPaneSelectionChange()
{
var folderTree = GetFolderTree();

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

@ -168,8 +168,8 @@
<!-- if you change this id, please change GetThreadAndMessagePaneSplitter() and MsgToggleMessagePane() -->
<splitter id="threadpane-splitter" collapse="after" persist="state hidden"
onmouseup="OnMouseUpThreadAndMessagePaneSplitter()">
<grippy onclick="OnClickThreadAndMessagePaneSplitterGrippy()"/>
oncommand="OnClickThreadAndMessagePaneSplitter()">
<grippy/>
</splitter>
<vbox id="messagepanebox" flex="2" minheight="100" height="200" minwidth="100" width="200" persist="collapsed height width" class="window-focusborder" focusring="false">

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

@ -166,8 +166,8 @@
<!-- if you change this id, please change GetThreadAndMessagePaneSplitter() and MsgToggleMessagePane() -->
<splitter id="threadpane-splitter" collapse="after" persist="state hidden"
onmouseup="OnMouseUpThreadAndMessagePaneSplitter()">
<grippy onclick="OnClickThreadAndMessagePaneSplitterGrippy()"/>
oncommand="OnClickThreadAndMessagePaneSplitter()">
<grippy/>
</splitter>
<vbox id="messagepanebox" flex="2" minheight="100" height="200" minwidth="100" width="200" persist="collapsed height width" class="window-focusborder" focusring="false">

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

@ -280,9 +280,8 @@ function FolderProperties(name, oldName, uri)
function MsgToggleMessagePane()
{
//OnClickThreadAndMessagePaneSplitter is based on the value before the splitter is toggled.
OnClickThreadAndMessagePaneSplitterGrippy();
MsgToggleSplitter("threadpane-splitter");
OnClickThreadAndMessagePaneSplitter();
}
function MsgToggleSplitter(id)