@controleonline/ui-common 1.2.92 → 1.2.93
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.
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.
|
|
2
|
+
"version": "1.2.93",
|
|
3
3
|
"rc": 1,
|
|
4
|
-
"branch": "rc/1.2.
|
|
5
|
-
"baseMaster": "
|
|
6
|
-
"tasks": [77
|
|
7
|
-
"repositories": {
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
"compositionNotes": [
|
|
11
|
-
"ui-common#77 (footer device info width 0 on Android) and app-community#1051 (zoom < 100 leaves screen detached from bottom).",
|
|
12
|
-
"Base is staging 03e8ae4 (= npm ui-common 1.2.91 consumed by app-community master); ui-common master is behind (1.2.87).",
|
|
13
|
-
"Individual task commits 19683a9 and 9e3a93b merged with --no-ff; no other dev content."
|
|
14
|
-
],
|
|
4
|
+
"branch": "rc/1.2.93-rc.1",
|
|
5
|
+
"baseMaster": "b4db94eb1ccd3bf878dc96e3d32c0249aad07402",
|
|
6
|
+
"tasks": [77],
|
|
7
|
+
"repositories": { "ControleOnline/ui-common": "4dfdb2d7ccb160f265115bdad3125d6ecd26bdfd" },
|
|
8
|
+
"compositionNotes": ["Verified on Android emulator: Text width was still 0 with flexBasis auto because Yoga prioritises flex over flexGrow/flexBasis. flex:0 fixes it."],
|
|
15
9
|
"frozen": true
|
|
16
10
|
}
|
package/package.json
CHANGED
|
@@ -107,6 +107,9 @@ const RuntimeFooterMarqueeText = props => {
|
|
|
107
107
|
flexGrow: 0,
|
|
108
108
|
// primaryText carries `flex: 1` (flexBasis 0 on native), which collapsed
|
|
109
109
|
// the Text to width 0 inside the row on Android. Force intrinsic sizing.
|
|
110
|
+
// Yoga gives `flex` precedence over flexGrow/flexBasis, so the inherited
|
|
111
|
+
// `flex: 1` must be overridden explicitly or the Text stays at width 0.
|
|
112
|
+
flex: 0,
|
|
110
113
|
flexBasis: 'auto',
|
|
111
114
|
minWidth: 0,
|
|
112
115
|
minHeight: 14,
|
|
@@ -187,6 +187,8 @@ test('native text keeps intrinsic width even when style carries flex: 1 (android
|
|
|
187
187
|
|
|
188
188
|
const text = tree.root.findAllByType('Text')[0];
|
|
189
189
|
const flat = Object.assign({}, ...[].concat(text.props.style));
|
|
190
|
+
// Yoga gives `flex` precedence: it must not stay at the inherited 1 (width 0 on Android).
|
|
191
|
+
assert.equal(flat.flex, 0);
|
|
190
192
|
assert.equal(flat.flexBasis, 'auto');
|
|
191
193
|
assert.equal(flat.flexGrow, 0);
|
|
192
194
|
assert.equal(flat.flexShrink, 0);
|