Frontmatter
| id | 3492 |
| title | layout.Flexbox: only apply configs to `wrapperCls` in case there are changes |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Oct 2, 2022, 5:39 PM |
| updatedAt | Oct 2, 2022, 5:40 PM |
| githubUrl | https://github.com/neomjs/neo/issues/3492 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 2, 2022, 5:40 PM |
this will reduce the
afterSetWrapperCls()calls by a lot.when creating a new layout,
container.Basewill trigger: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); }); } }=> the initial values will get applied anyway