Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/core/ui/core/properties/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,10 @@ export class CssAnimationProperty<T extends Style, U> implements CssAnimationPro
}
}
}
if (property.affectsLayout) {
view.requestLayout();
}
}
// properties without a native setter (height, width, margins on iOS) still need the layout
if (property.affectsLayout && (computedValueChanged || isSet !== wasSet)) {
view.requestLayout();
}
const eventName = property.eventName;
if (computedValueChanged && (!__UI_USE_EXTERNAL_RENDERER__ || !view._suspendNativeUpdatesCount) && this.hasListeners(eventName)) {
Expand Down
5 changes: 5 additions & 0 deletions packages/core/ui/core/view-base/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,11 @@ export abstract class ViewBase extends Observable {
if (!this._suspendNativeUpdatesCount) {
this.onResumeNativeUpdates();
}
if (shouldResumeRequestLayout) {
// layout requests received while suspended were only recorded: replay them now,
// otherwise the next measure reuses the cached size and ignores the changes
this.requestlayoutIfNeeded();
}
}

/**
Expand Down
Loading