Native XFA relayout requests
Version 2.1191.0 adds provider-free FormCalc xfa.layout.relayout() and xfa.layout.relayoutPageArea([page]) through the runtime's publication and lifecycle scheduler
Both return an empty native result; relayout takes no arguments, and relayoutPageArea accepts an optional zero-based page index from the accepted physical layout
Publication and query timing
A request is deferred to the normal publication boundary, preserving the current handler's completed layout snapshot and live object references
For example, a handler can change a field's width from30pt to60pt and request relayout while its current geometry query still returns30pt; the published widget then has width60pt
Page-area requests use normal full-form publication, including the actual changed master or body content and any resulting pagination
Omitting the page selector requests that normal publication; a supplied selector must be a nonnegative finite safe integer within the accepted physical page range
Multiple requests before the same publication coalesce, and separate accepted public events process their own requests
Layout-ready callbacks and remerge
An explicit request from a layout-ready callback schedules another bounded ready round even when widget geometry has not changed
When a callback performs remerge first and requests relayout after the nested lifecycle completes, that new request still receives its ready round
A request made before remerge can be handled by the nested lifecycle and is not repeated solely because the outer callback resumes
Resumed work shares the original operation, deadline, lifecycle scan and reflow allowances, including the existing MaxReflowPasses boundary
Transaction behavior
Invalid parameters or repeated unguarded ready requests produce the existing transaction diagnostic and restore document, widget and request state
A later valid event or initialization attempt can retry without an abandoned request leaking from the failed transaction
The qualified profile uses native FormCalc with JavaScript disabled and does not require a provider
See native layout queries, native layout conditions and form scripting