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


git-svn-id: svn://10.0.0.236/trunk@51916 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1999-10-26 23:34:46 +00:00
parent 71d282e592
commit beb6aa3e8b
2 changed files with 8 additions and 2 deletions

View File

@@ -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);
}