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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user