@geastack/engine 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ui/tree_render.cpp +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geastack/engine",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "GeaStack rendering engine, intrinsic JSX primitives, and native engine backends.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -2214,6 +2214,16 @@ namespace gea::embedded::ui
2214
2214
  }
2215
2215
  #endif
2216
2216
  }
2217
+ }
2218
+ // Allocation order is not tree order: component text can precede
2219
+ // its parent panel. Finish translating all retained commands before
2220
+ // recording any replacements at their final layout coordinates, or
2221
+ // a later parent translation moves freshly recorded text twice.
2222
+ for (int i = 0; can_keep_display_list && i < state.nodeCount; i++)
2223
+ {
2224
+ Node *n = &state.nodes[i];
2225
+ if (!n->render.dirty)
2226
+ continue;
2217
2227
  if (layoutSizeChangeNeedsCommandRerecord(*n))
2218
2228
  state.nodeCommandDirty[i] = 1;
2219
2229
  if (state.nodeCommandDirty[i] && n->render.transform_dirty && n->first_child >= 0)