Commit d38ba46
authored
chore: remember RCTAppDelegate main window position (#2637)
## Summary:
Previously, we always centered the window, which got a bit annoying
during debugging when I'd like to have it remember the last position as
I relaunch it. This is probably a good thing to do in general, so let's
do it in `RCTAppDelegate`.
## Test Plan:
Removed any saved frame by running `defaults delete
Microsoft.RNTester-macOS`: window is centered
Resize window and move it and close and relaunch: old position is
remembered.1 parent 9634b2d commit d38ba46
File tree
1 file changed
+9
-2
lines changed- packages/react-native/Libraries/AppDelegate
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| |||
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
135 | | - | |
| 142 | + | |
0 commit comments