Frontmatter
| id | 6696 |
| title | container.Base: afterSetLayout() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | May 5, 2025, 3:43 PM |
| updatedAt | May 5, 2025, 7:22 PM |
| githubUrl | https://github.com/neomjs/neo/issues/6696 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | 6697 layout.Base: applyRenderAttributes() => should trigger applyChildAttributes() internally 6698 layout.Base: removeRenderAttributes() => should trigger removeChildAttributes() internally 6699 layout.Cube: destroy() => move the transformation logic into removeRenderAttributes() 6700 Portal.view.ViewportController: setMainContentIndex() => only use the first timeout for cube layout switches 6701 layout.Base: applyRenderAttributes() => add a silent param 6702 layout.Cube: getPlaneId() |
| subIssuesCompleted | 6 |
| subIssuesTotal | 6 |
| blockedBy | [] |
| blocking | [] |
| closedAt | May 5, 2025, 7:22 PM |
container.Base: afterSetLayout()
tobiu assigned to @tobiu on May 5, 2025, 3:43 PM
tobiu added sub-issue #6697 on May 5, 2025, 3:44 PM
tobiu added sub-issue #6698 on May 5, 2025, 3:45 PM
tobiu added sub-issue #6699 on May 5, 2025, 4:07 PM
tobiu added sub-issue #6700 on May 5, 2025, 4:17 PM
tobiu added sub-issue #6701 on May 5, 2025, 6:54 PM
tobiu added sub-issue #6702 on May 5, 2025, 7:19 PM
tobiu closed this issue on May 5, 2025, 7:22 PM
so far,
container.Baseis using:afterSetLayout(value, oldValue) { let me = this; if (me.rendered) { oldValue?.removeRenderAttributes(); value?.applyRenderAttributes(); me.items.forEach((item, index) => { oldValue?.removeChildAttributes(item, index); value?.applyChildAttributes(item, index) }) } oldValue?.destroy?.() }