@arquimedes.co/eureka-forms 1.9.11-test → 1.9.13-test
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.
|
@@ -58,18 +58,11 @@ function FormComponent(_a) {
|
|
|
58
58
|
var currentWidth = (_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
59
59
|
if (currentWidth !== undefined) {
|
|
60
60
|
var currentBreakPoint = form.size.blockNum;
|
|
61
|
-
var padding = form.isStandAlone ?
|
|
62
|
-
console.log(currentWidth);
|
|
63
|
-
console.log((form.size.blockSize + form.size.spacingSize) *
|
|
64
|
-
currentBreakPoint);
|
|
65
|
-
console.log((form.size.blockSize + form.size.spacingSize) *
|
|
66
|
-
currentBreakPoint +
|
|
67
|
-
padding);
|
|
61
|
+
var padding = postview || internal || !form.isStandAlone ? 0 : 40;
|
|
68
62
|
while (currentWidth <
|
|
69
63
|
(form.size.blockSize + form.size.spacingSize) *
|
|
70
64
|
currentBreakPoint +
|
|
71
65
|
padding) {
|
|
72
|
-
console.log('less');
|
|
73
66
|
currentBreakPoint--;
|
|
74
67
|
}
|
|
75
68
|
setWidthStats({
|
|
@@ -98,7 +91,7 @@ function FormComponent(_a) {
|
|
|
98
91
|
backgroundColor: internal
|
|
99
92
|
? InternalFormStyle.backgroundColor
|
|
100
93
|
: form.style.backgroundColor,
|
|
101
|
-
minHeight:
|
|
94
|
+
minHeight: form.isStandAlone && !isWidget ? '100vh' : '100%',
|
|
102
95
|
} }, { children: _jsx("div", __assign({ className: styles.widgetFormContainer, ref: containerRef }, { children: _jsx(FormTypeComponent, __assign({}, others, { handleLoaded: function () {
|
|
103
96
|
setLoaded(true);
|
|
104
97
|
}, widthStats: widthStats, form: form, internal: internal, postview: postview, organization: organization, formStyle: internal ? InternalFormStyle : form.style }), void 0) }), void 0) }), void 0));
|
|
@@ -27,8 +27,6 @@ import styles from './MaterialSection.module.css';
|
|
|
27
27
|
function MaterialSection(_a) {
|
|
28
28
|
var form = _a.form, section = _a.section, widthStats = _a.widthStats, others = __rest(_a, ["form", "section", "widthStats"]);
|
|
29
29
|
var postview = others.postview, partial = others.partial, originalValues = others.originalValues;
|
|
30
|
-
console.log(widthStats);
|
|
31
|
-
console.log(form.size);
|
|
32
30
|
return (_jsx("div", __assign({ className: styles.container, style: {
|
|
33
31
|
width: (form.size.blockSize + form.size.spacingSize) *
|
|
34
32
|
form.size.blockNum,
|
package/package.json
CHANGED