File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1658,11 +1658,13 @@ export class Morph {
16581658 this . makeDirty ( ) ;
16591659 submorph . resumeSteppingAll ( ) ;
16601660
1661- submorph . withAllSubmorphsDo ( ea => ea . onOwnerChanged ( this ) ) ;
1661+ submorph . withAllSubmorphsDo ( ea => {
1662+ ea . onOwnerChanged ( this ) ;
1663+ } ) ;
16621664
1663- if ( submorph . _requestMasterStyling ) {
1664- submorph . master && submorph . master . applyIfNeeded ( true ) ;
1665- submorph . _requestMasterStyling = false ;
1665+ if ( this . world ( ) && ! this . isText ) {
1666+ this . env . forceUpdate ( this ) ;
1667+ this . withAllSubmorphsDo ( m => m . makeDirty ( ) ) ;
16661668 }
16671669 } ) ;
16681670
Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ export default class Renderer {
145145 }
146146 }
147147
148+ this . worldMorph . applyLayoutIfNeeded ( ) ;
149+
148150 // handling these first allows us to assume correct wrapping, when we have submorphs already!
149151 for ( let morph of morphsToHandle ) {
150152 if ( morph . renderingState . hasCSSLayoutChange ) this . renderLayoutChange ( morph ) ;
You can’t perform that action at this time.
0 commit comments