At kipp's suggestion I added a EnterReflowLock before and a ExitReflowLock

after my AppendReflowCommand. The reflow command gets "kicked off"
and it is now fixed. r=kipp, b=14771
This commit is contained in:
rods%netscape.com 1999-10-26 23:34:46 +00:00
Родитель 6844e8ec38
Коммит 7670a72df2
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -1045,7 +1045,10 @@ nsComboboxControlFrame::SelectionChanged()
nsCOMPtr<nsIPresShell> shell;
rv = mPresContext->GetShell(getter_AddRefs(shell));
if (NS_SUCCEEDED(rv) && shell) {
shell->AppendReflowCommand(cmd);
if (NS_SUCCEEDED(shell->EnterReflowLock())) {
shell->AppendReflowCommand(cmd);
shell->ExitReflowLock();
}
}
NS_RELEASE(cmd);
}

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

@ -1045,7 +1045,10 @@ nsComboboxControlFrame::SelectionChanged()
nsCOMPtr<nsIPresShell> shell;
rv = mPresContext->GetShell(getter_AddRefs(shell));
if (NS_SUCCEEDED(rv) && shell) {
shell->AppendReflowCommand(cmd);
if (NS_SUCCEEDED(shell->EnterReflowLock())) {
shell->AppendReflowCommand(cmd);
shell->ExitReflowLock();
}
}
NS_RELEASE(cmd);
}