slate-angular 20.2.0-next.31 → 20.2.0-next.32
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.
|
@@ -2870,6 +2870,19 @@ const createText = (text) => {
|
|
|
2870
2870
|
return { nativeElement };
|
|
2871
2871
|
};
|
|
2872
2872
|
|
|
2873
|
+
const setPreRenderingElementStyle = (rootNode, isClear = false) => {
|
|
2874
|
+
if (isClear) {
|
|
2875
|
+
rootNode.style.top = '';
|
|
2876
|
+
rootNode.style.left = '';
|
|
2877
|
+
rootNode.style.right = '';
|
|
2878
|
+
rootNode.style.position = '';
|
|
2879
|
+
return;
|
|
2880
|
+
}
|
|
2881
|
+
rootNode.style.top = '-100%';
|
|
2882
|
+
rootNode.style.left = '0px';
|
|
2883
|
+
rootNode.style.right = '0px';
|
|
2884
|
+
rootNode.style.position = 'absolute';
|
|
2885
|
+
};
|
|
2873
2886
|
class ListRender {
|
|
2874
2887
|
constructor(viewContext, viewContainerRef, getOutletParent, getOutletElement) {
|
|
2875
2888
|
this.viewContext = viewContext;
|
|
@@ -2924,9 +2937,7 @@ class ListRender {
|
|
|
2924
2937
|
const preRenderingElement = [...this.preRenderingHTMLElement];
|
|
2925
2938
|
preRenderingElement.forEach((rootNodes, index) => {
|
|
2926
2939
|
rootNodes.forEach(rootNode => {
|
|
2927
|
-
rootNode
|
|
2928
|
-
rootNode.style.top = '';
|
|
2929
|
-
rootNode.style.width = '';
|
|
2940
|
+
setPreRenderingElementStyle(rootNode, true);
|
|
2930
2941
|
});
|
|
2931
2942
|
});
|
|
2932
2943
|
this.preRenderingHTMLElement = [];
|
|
@@ -3032,9 +3043,7 @@ class ListRender {
|
|
|
3032
3043
|
for (let i = 0; i < preRenderingCount; i++) {
|
|
3033
3044
|
const rootNodes = [...getRootNodes(this.views[i], this.blockCards[i])];
|
|
3034
3045
|
rootNodes.forEach(rootNode => {
|
|
3035
|
-
rootNode
|
|
3036
|
-
rootNode.style.position = 'absolute';
|
|
3037
|
-
rootNode.style.width = '100%';
|
|
3046
|
+
setPreRenderingElementStyle(rootNode);
|
|
3038
3047
|
});
|
|
3039
3048
|
this.preRenderingHTMLElement.push(rootNodes);
|
|
3040
3049
|
}
|