If you put break points in PresShell::AppendReflowCommand() and PresShell::PostReflowEvent() do you ever hit them while executing your code?
If reflow commands are being generated, you could call presShell->FlushPendingNotifications(PR_FALSE) from your code as a *temporary* workaround instead of a calling StyleChangeReflow(). This will allow you to synchronously process any reflow commands that are currently in the queue, and allow us to incrementally reflow the nodes that were specifically targeted by the reflow commands.
--== Kin ==--
timmy wrote:
Boris Zbarsky <[EMAIL PROTECTED]> wrote in message news:aq5ilb$[EMAIL PROTECTED]"><aq5ilb$[EMAIL PROTECTED]>...timmy wrote:I use this method for changing the text of a node in the document. Now i want to reflow only the element with the given ID. How do i do this?nsIPresShell::AppendReflowCommand should let you append a command targeted at a particular element.That said, content changes like replacing child text nodes with other child text nodes should trigger reflow commands automatically... is that not happening?No it's not. Layout only changes on mousemovement. But my application needs direct reflow without mousemovement (application used on touchscreen). So i do have to start the reflow event on my own! I am using 2002082606. thanx for your reply
