Skip to content

Commit

Permalink
Fixed: Before this PR, nib2cib failed if a color well or a scrollable…
Browse files Browse the repository at this point in the history
… text view was added in a CPBox (#2994)
  • Loading branch information
didierkorthoudt committed Mar 21, 2022
1 parent 7c1fdbc commit 6544aff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AppKit/CPView.j
Expand Up @@ -597,7 +597,9 @@ var CPViewHighDPIDrawingEnabled = YES;
#endif

// Notify the subview that it will be moving.
#if PLATFORM(DOM)
[aSubview viewWillMoveToSuperview:self];
#endif

// We will have to adjust the z-index of all views starting at this index.
var count = _subviews.length,
Expand Down Expand Up @@ -663,7 +665,9 @@ var CPViewHighDPIDrawingEnabled = YES;
[aSubview setNextResponder:self];
[aSubview _scaleSizeUnitSquareToSize:[self _hierarchyScaleSize]];

#if PLATFORM(DOM)
[aSubview viewDidMoveToSuperview];
#endif

// Set the subview's window to our own.
if (_window)
Expand Down

0 comments on commit 6544aff

Please sign in to comment.