@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.
- package/package.json +1 -1
- package/ui/tree_render.cpp +10 -0
package/package.json
CHANGED
package/ui/tree_render.cpp
CHANGED
|
@@ -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)
|