@omnia/velcron 8.0.478-dev → 8.0.479-dev
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/parser/VelcronStyles.js +11 -11
package/package.json
CHANGED
package/parser/VelcronStyles.js
CHANGED
|
@@ -184,11 +184,11 @@ class VelcronStyles {
|
|
|
184
184
|
const minWidth = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.minWidth);
|
|
185
185
|
const height = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.height);
|
|
186
186
|
const minHeight = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.minHeight);
|
|
187
|
-
styleBase.width = this.unitProvider.formatDimension(width);
|
|
188
|
-
styleBase.maxWidth = this.unitProvider.formatDimension(width);
|
|
189
|
-
styleBase.minWidth = this.unitProvider.formatDimension(minWidth);
|
|
190
|
-
styleBase.height = this.unitProvider.formatDimension(height);
|
|
191
|
-
styleBase.minHeight = this.unitProvider.formatDimension(minHeight);
|
|
187
|
+
styleBase.width = width ? this.unitProvider.formatDimension(width) : undefined;
|
|
188
|
+
styleBase.maxWidth = width ? this.unitProvider.formatDimension(width) : undefined;
|
|
189
|
+
styleBase.minWidth = minWidth ? this.unitProvider.formatDimension(minWidth) : undefined;
|
|
190
|
+
styleBase.height = height ? this.unitProvider.formatDimension(height) : undefined;
|
|
191
|
+
styleBase.minHeight = minHeight ? this.unitProvider.formatDimension(minHeight) : undefined;
|
|
192
192
|
}
|
|
193
193
|
if (definition.type === VelcronConstants_1.VelcronConstants.components.row) {
|
|
194
194
|
const flexDefinition = definition;
|
|
@@ -243,11 +243,11 @@ class VelcronStyles {
|
|
|
243
243
|
styleBase.rowGap = this.unitProvider.formatDimension(gapY);
|
|
244
244
|
styleBase.columnGap = this.unitProvider.formatDimension(gapX);
|
|
245
245
|
styleBase.flexBasis = height ? this.unitProvider.formatDimension(height) : undefined;
|
|
246
|
-
styleBase.width = this.unitProvider.formatDimension(width);
|
|
247
|
-
styleBase.maxWidth = this.unitProvider.formatDimension(width);
|
|
248
|
-
styleBase.minWidth = this.unitProvider.formatDimension(minWidth);
|
|
249
|
-
styleBase.height = this.unitProvider.formatDimension(height);
|
|
250
|
-
styleBase.minHeight = this.unitProvider.formatDimension(minHeight);
|
|
246
|
+
styleBase.width = width ? this.unitProvider.formatDimension(width) : undefined;
|
|
247
|
+
styleBase.maxWidth = width ? this.unitProvider.formatDimension(width) : undefined;
|
|
248
|
+
styleBase.minWidth = minWidth ? this.unitProvider.formatDimension(minWidth) : undefined;
|
|
249
|
+
styleBase.height = height ? this.unitProvider.formatDimension(height) : undefined;
|
|
250
|
+
styleBase.minHeight = minHeight ? this.unitProvider.formatDimension(minHeight) : undefined;
|
|
251
251
|
this.insertBackgroundColor(styleBase, flexDefinition, renderCtx);
|
|
252
252
|
}
|
|
253
253
|
if (definition.type === VelcronConstants_1.VelcronConstants.components.column) {
|
|
@@ -270,7 +270,7 @@ class VelcronStyles {
|
|
|
270
270
|
styleBase.flexShrink = styleBase.flexGrow;
|
|
271
271
|
styleBase.maxWidth = width ? this.unitProvider.formatDimension(width) : "100%";
|
|
272
272
|
styleBase.alignSelf = yAlignment;
|
|
273
|
-
styleBase.minWidth = this.unitProvider.formatDimension(minWidth);
|
|
273
|
+
styleBase.minWidth = minWidth ? this.unitProvider.formatDimension(minWidth) : undefined;
|
|
274
274
|
this.insertBackgroundColor(styleBase, flexDefinition, renderCtx);
|
|
275
275
|
}
|
|
276
276
|
if (definition.type === VelcronConstants_1.VelcronConstants.components.grid) {
|