On May 15, 12:00 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Can you please tell me how can I suppress the relayout/reflow the page > > when I add an element to the dom in C/C++? > > I'm not sure what you're asking here. Do you mean completely freeze all > layout > for some prolonged time period including event loop processing? There is no > way > to really do that. > > Or do you mean something else? > > -Boris
Thanks for your help. What i mean it , I have a piece of code which add DIV elements to the dom (in c/c++). And that will change the layout every time one is added to the dom and that triggers a relayout in mozilla engine. But since the code will add a lot of DIV elements (~200). What I am thinking is 'is it possible to suppress the relayout of the mozilla before the for-loop of adding DIV elements, and just relayout once after the for loop is finished. Thank you. _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

