@geastack/engine 0.1.26 → 0.1.27

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/layout.cpp +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geastack/engine",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "GeaStack rendering engine, intrinsic JSX primitives, and native engine backends.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/ui/layout.cpp CHANGED
@@ -1783,7 +1783,9 @@ private:
1783
1783
  int extent = 0;
1784
1784
  for (int c = childNode.first_child; c >= 0; c = nodes[c].next_sibling) {
1785
1785
  const Node &grand = nodes[c];
1786
- if (isLayoutExcluded(grand) || isOutOfFlowPosition(grand.computedStyle().position)) continue;
1786
+ // Ignored DOM whitespace has no box to contribute to the flex item's minimum.
1787
+ if (isLayoutExcluded(grand) || isOutOfFlowPosition(grand.computedStyle().position) ||
1788
+ suppressAnonymousWhitespace(nodes, grand.parent, c)) continue;
1787
1789
  // layout.{x,y} are still parent-relative here: resolveAbsoluteCoords runs
1788
1790
  // after the whole layout pass. A text run's laid-out box is its line box,
1789
1791
  // as wide as the space it was offered (and offset by text-align), so it