Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Flyout placement for versions <RS5 #2676

Merged
merged 266 commits into from
Jun 26, 2019
Merged
Changes from 250 commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
f89a8d8
Applying package update to 0.58.0-vnext.65
Apr 30, 2019
13cf2d5
add layoutanimationtests to cmake unit tests (#2372)
PPatBoyd Apr 30, 2019
cd32e71
Applying package update to 0.58.0-vnext.66
Apr 30, 2019
9ea57ab
Update to [email protected] (#2370)
acoates-ms Apr 30, 2019
f16c47c
Fix first launch and reload/unload crash (#2373)
licanhua May 2, 2019
4db7427
Applying package update to 0.58.0-vnext.67
May 2, 2019
1cac309
Update to [email protected] (#2395)
acoates-ms May 2, 2019
f562376
Update version of ChakraCore in sample (#2398)
acoates-ms May 2, 2019
1d4e2b6
Applying package update to 0.58.0-vnext.68
May 2, 2019
b79e34a
chore(NPM): Updates JS modules to match RN 0.58 (#2293)
rozele May 3, 2019
06bdcc8
Applying package update to 0.58.0-vnext.69
May 3, 2019
6c1c478
Moved .ado to root (#2406)
jonthysell May 3, 2019
9ed51be
Renamed RNWCPP to vnext and RNWCS to current (#2405)
harinikmsft May 3, 2019
6945836
Update CODEOWNERS and ISSUE_TEMPLATE (#2408)
jonthysell May 4, 2019
337ee4f
Committing changes to master readme (#2409)
harinikmsft May 5, 2019
8831350
Update publish logic
acoates-ms May 6, 2019
a0e245e
More publish logic fixes
acoates-ms May 6, 2019
c731a2b
Applying package update to 0.58.0-vnext.70
May 6, 2019
7bbbe42
Update evergreen logic
acoates-ms May 6, 2019
a1fe499
Remove ChakraCoreShim project. (#2407)
hansenyy May 6, 2019
730f314
Applying package update to 0.58.0-vnext.71
May 6, 2019
d473d14
Enable WebSocket resource unit tests. (#2415)
JunielKatarn May 6, 2019
d7cd525
Applying package update to 0.58.0-vnext.72
May 6, 2019
c469a64
End of line updates. (#2418)
JunielKatarn May 7, 2019
f8d211b
Applying package update to 0.58.0-vnext.73
May 7, 2019
2b48e38
README for `current` (#2422)
harinikmsft May 7, 2019
b0a060b
Applying package update to 0.58.0-vnext.74
May 7, 2019
c5fc651
Minor updates to readme (#2423)
harinikmsft May 7, 2019
13cf6d1
Updating Getting Started (vnext) (#2425)
harinikmsft May 8, 2019
924aade
Applying package update to 0.58.0-vnext.75
May 8, 2019
fecffa9
Update evergreen script
acoates-ms May 8, 2019
55b54f5
Script store (#2413)
mganandraj May 8, 2019
4cf337e
Applying package update to 0.58.0-vnext.76
May 8, 2019
6210b2f
Update to [email protected] (#2426)
acoates-ms May 8, 2019
8a0200e
Update to [email protected] (#2430)
acoates-ms May 8, 2019
5ca5552
Internal build changes (#2432)
acoates-ms May 8, 2019
27318ce
Applying package update to 0.58.0-vnext.77
May 8, 2019
2e7fc31
Internal build logic update
acoates-ms May 8, 2019
378be0c
Applying package update to 0.58.0-vnext.78
May 8, 2019
49911eb
Update to [email protected] (#2434)
acoates-ms May 9, 2019
40b30f5
Update to [email protected] (#2435)
acoates-ms May 9, 2019
33b3735
Improve js download error handling (#2433)
ahimberg May 9, 2019
1ac46f9
Applying package update to 0.58.0-vnext.79
May 9, 2019
0ff7564
Basic implementation of jsi::HostObject on Chakra (#2428)
mganandraj May 9, 2019
f775004
Applying package update to 0.58.0-vnext.80
May 9, 2019
dc0e1ee
Enabling further C++ strict conformance (/permissive-) (#2429)
ahimberg May 9, 2019
b1f89ad
Applying package update to 0.58.0-vnext.81
May 9, 2019
1a4b804
Change min version from rs3 to rs2 (#2400)
licanhua May 9, 2019
84bfece
Applying package update to 0.58.0-vnext.82
May 9, 2019
27a3513
Update to [email protected] (#2441)
acoates-ms May 9, 2019
75b2a70
Internal build fixes (#2440)
acoates-ms May 9, 2019
8a65c4f
Applying package update to 0.58.0-vnext.83
May 9, 2019
36e5693
Simplify BaseWebSocket dependency mocks. (#2427)
JunielKatarn May 9, 2019
629e542
Applying package update to 0.58.0-vnext.84
May 9, 2019
134d154
updating chakracore debugger (#2444)
asachin96 May 10, 2019
ce6fe35
Applying package update to 0.58.0-vnext.85
May 10, 2019
0d4a081
Update to [email protected] (#2449)
acoates-ms May 10, 2019
3ba5ce1
Drop boost package references for NMake. (#2446)
JunielKatarn May 10, 2019
6f97a9d
Be specific about which string_view (#2450)
acoates-ms May 10, 2019
72dbfc9
Applying package update to 0.58.0-vnext.86
May 10, 2019
39134f2
Applying package update to 0.58.0-vnext.87
May 10, 2019
75316c1
Revert "Drop boost package references for NMake. (#2446)" (#2454)
JunielKatarn May 12, 2019
affc823
Applying package update to 0.58.0-vnext.88
May 12, 2019
712398c
Check build has happened before running bundler (#2453)
acoates-ms May 13, 2019
77cc82f
Applying package update to 0.58.0-vnext.89
May 13, 2019
f3a47c0
Unicode conversion (#2445)
hansenyy May 13, 2019
0e65a45
Applying package update to 0.58.0-vnext.90
May 13, 2019
02850b6
Update publish logic to enable publish of fb*merge and fabric branches
acoates-ms May 13, 2019
d678c30
Update to [email protected] (#2459)
acoates-ms May 13, 2019
42d1098
Update publish step to allow publishing different npm tags
acoates-ms May 13, 2019
27a0d5e
Fix x86 cmake build. (#2462)
hansenyy May 14, 2019
6dc030c
Applying package update to 0.58.0-vnext.91
May 14, 2019
a39cc91
Update to [email protected] (#2463)
acoates-ms May 14, 2019
3ea8862
Add option for native promise support in Chakra JSI (#2461)
tudorms May 14, 2019
e8beecf
Applying package update to 0.58.0-vnext.92
May 14, 2019
a099b81
Header should include all its reqs (#2468)
acoates-ms May 14, 2019
dec1121
Applying package update to 0.58.0-vnext.93
May 14, 2019
488258b
Chakracore debugger console redirection support (#2457)
asachin96 May 15, 2019
7d5d046
Applying package update to 0.58.0-vnext.94
May 15, 2019
f7b3a0a
fix nuget packaging (#2473)
ahimberg May 15, 2019
f9ef71b
Applying package update to 0.58.0-vnext.95
May 15, 2019
df2678c
Add v8runtime export to the def file and a dummy implementation for G…
tudorms May 15, 2019
5b06798
Applying package update to 0.58.0-vnext.96
May 15, 2019
378d5da
Complete support for HostObject (UWP&Win32) and Weak references (part…
mganandraj May 15, 2019
05df043
Applying package update to 0.58.0-vnext.97
May 15, 2019
cb9c5cf
Add IUIManager.h to nuget (#2475)
acoates-ms May 15, 2019
326d89b
Applying package update to 0.58.0-vnext.98
May 15, 2019
498ca8c
unicode.h uses stdexcept but doesn't include it (#2476)
acoates-ms May 15, 2019
42580e7
Applying package update to 0.58.0-vnext.99
May 15, 2019
7e420d8
Add/update repository properties in package.jsons (#2471)
marlenecota May 15, 2019
09d0228
Update to [email protected] (#2478)
acoates-ms May 15, 2019
8de7bcd
Update to [email protected] (#2479)
acoates-ms May 15, 2019
de9c99c
Applying package update to 0.58.0-vnext.100
May 16, 2019
eae829e
Nuget fix iuimanager.h typo (#2483)
ahimberg May 16, 2019
354affc
Applying package update to 0.58.0-vnext.101
May 16, 2019
f5cb189
ScrollView snap point properties (#2443)
StephenLPeters May 16, 2019
0d767f4
Applying package update to 0.58.0-vnext.102
May 16, 2019
71f3315
Flyout updates (#2442)
KAnder425 May 16, 2019
d31218b
Applying package update to 0.58.0-vnext.103
May 16, 2019
83d78f0
Include IWebSocket.h in nuget (#2487)
acoates-ms May 16, 2019
67861eb
Applying package update to 0.58.0-vnext.104
May 16, 2019
12f7e84
Readme path updates (#2489)
marlenecota May 17, 2019
4e3f683
Applying package update to 0.58.0-vnext.105
May 17, 2019
a49e7ab
Switching UWP react native instance to use JSI (#2485)
mganandraj May 17, 2019
b698222
Applying package update to 0.58.0-vnext.106
May 17, 2019
8ba1532
cmake build fixes, uwp unittest build fix (#2490)
ahimberg May 17, 2019
ea41739
Applying package update to 0.58.0-vnext.107
May 17, 2019
7a2426d
Update to [email protected] (#2491)
acoates-ms May 17, 2019
68d1441
Fixing cmake build after JSI switch (#2496)
mganandraj May 17, 2019
5cd02fc
Applying package update to 0.58.0-vnext.108
May 17, 2019
3e226a8
Modify publish task to publish nuget (#2497)
acoates-ms May 17, 2019
1938363
Perf improvements (#2495)
ahimberg May 17, 2019
439d51d
Applying package update to 0.58.0-vnext.109
May 17, 2019
88d3ec8
Fixing siing issues with Flyout (WI: 3362439) (#2493)
KAnder425 May 17, 2019
de47c76
Applying package update to 0.58.0-vnext.110
May 17, 2019
27eaffb
fix for running in web debugging mode (#2500)
ahimberg May 18, 2019
2ca1c61
Applying package update to 0.58.0-vnext.111
May 18, 2019
15e77dc
Verify nuget can be packed during PR (#2498)
acoates-ms May 18, 2019
c55b494
JSI compat fixes (#2501)
ahimberg May 18, 2019
32ec2a8
Applying package update to 0.58.0-vnext.112
May 18, 2019
f6129b7
fix TextInput (#2502)
ahimberg May 18, 2019
5364d48
Applying package update to 0.58.0-vnext.113
May 18, 2019
83bb719
Removing some MS-internal build files, add UseJsi option (#2503)
ahimberg May 20, 2019
d04c9ad
Applying package update to 0.58.0-vnext.114
May 20, 2019
890751c
add DirectDebugging option for uwp Chakra (#2504)
ahimberg May 20, 2019
2ce2d2a
Applying package update to 0.58.0-vnext.115
May 20, 2019
487f40f
Fix to allow authorization header to be added. (#2467)
stecrain May 20, 2019
54e99c7
Applying package update to 0.58.0-vnext.116
May 20, 2019
0d9265c
Change name of publish temp branch
acoates-ms May 20, 2019
10c3cbb
internal build fix (#2506)
ahimberg May 21, 2019
cea5645
Applying package update to 0.58.0-vnext.117
May 21, 2019
1844121
Update to [email protected] (#2507)
acoates-ms May 21, 2019
1113b4c
Update to [email protected] (#2514)
acoates-ms May 22, 2019
153fafd
Core Parity Status Article (#2510)
kikisaints May 22, 2019
b417b42
Add files needed for win32 nuget (#2511)
acoates-ms May 22, 2019
68293d1
Disable trickle (#2517)
statm May 22, 2019
9cea565
Create a seperate uwp nuget (#2516)
acoates-ms May 22, 2019
1aa4d98
Applying package update to 0.58.0-vnext.118
May 22, 2019
793814c
Applying package update to 0.58.0-vnext.119
May 22, 2019
22230f9
Transform support (#2513)
kmelmon May 22, 2019
de54776
Applying package update to 0.58.0-vnext.120
May 22, 2019
3506ab8
ChakraCore v1.11.9 (#2474)
akrantz May 22, 2019
97fad9f
Applying package update to 0.58.0-vnext.121
May 22, 2019
551a2d4
Flyout dismissal (#2519)
KAnder425 May 23, 2019
6add5d1
Applying package update to 0.58.0-vnext.122
May 23, 2019
fc8d1a2
Update to [email protected] (#2523)
acoates-ms May 23, 2019
59e2f5c
Avoid infinite updating loop for textinput and allow fast typing (#2521)
licanhua May 23, 2019
e20f84b
Applying package update to 0.58.0-vnext.123
wravery May 23, 2019
060c54d
Self layout elements not always visible after an update (#2520)
ahimberg May 23, 2019
84d8c14
Applying package update to 0.58.0-vnext.124
May 23, 2019
3c40e9d
Fix nuget
acoates-ms May 23, 2019
0536a95
Applying package update to 0.58.0-vnext.125
wravery May 23, 2019
d54274d
Update to [email protected] (#2525)
acoates-ms May 24, 2019
b87d135
Generate full debugging info in the pdbs (#2528)
acoates-ms May 24, 2019
1d99602
Applying package update to 0.58.0-vnext.126
May 24, 2019
544e16f
ChakraJsiRuntime debugger refactoring (#2526)
mganandraj May 25, 2019
60139df
Applying package update to 0.58.0-vnext.127
May 25, 2019
c6f5a01
BatchingUIManager for UWP (#2481)
randy-flynn May 25, 2019
f3dbbf1
Applying package update to 0.58.0-vnext.128
May 25, 2019
b975b79
Export dynamic::get_ptr (#2534)
acoates-ms May 28, 2019
e7bbdee
Update to [email protected] (#2533)
acoates-ms May 28, 2019
18018ff
Applying package update to 0.58.0-vnext.129
May 28, 2019
ef342e6
Turn off debug output for BatchingUIManager. (#2536)
randy-flynn May 29, 2019
856d096
Applying package update to 0.58.0-vnext.130
wravery May 29, 2019
87f0d06
VS 2019 Fixes (#2396)
ahimberg May 29, 2019
5aa5746
Applying package update to 0.58.0-vnext.131
May 29, 2019
3003cae
Update msbuildtools.js with VS 2019 path (#2539)
marlenecota May 29, 2019
28dc73d
Applying package update to 0.58.0-vnext.132
May 30, 2019
becf3ba
Updating chakracore debugger to the latest version (#2543)
asachin96 May 30, 2019
f3c8245
Applying package update to 0.58.0-vnext.133
May 30, 2019
5b700ae
Update to [email protected] (#2541)
acoates-ms May 30, 2019
824d317
PDBs should be created with -minpdbpathlen:256 (#2544)
acoates-ms May 30, 2019
fd693e0
Applying package update to 0.58.0-vnext.134
May 30, 2019
e72904d
Remove use of LayoutUpdated event. Set clipping in ArrangeOverride() …
randy-flynn May 30, 2019
a317ae8
Applying package update to 0.58.0-vnext.135
May 30, 2019
1a324a5
ScrollContentView and ScrollView cleanup (#2545)
ahimberg May 31, 2019
ad39122
Applying package update to 0.58.0-vnext.136
May 31, 2019
bb02587
Image unforking (#2547)
ahimberg May 31, 2019
38b5398
Applying package update to 0.58.0-vnext.137
May 31, 2019
667e4d3
enable inline source maps by default (#2553)
stecrain Jun 1, 2019
ab03fa1
Applying package update to 0.58.0-vnext.138
Jun 1, 2019
034cf32
require AttachRoot to be called from UI thread (#2551)
ahimberg Jun 1, 2019
c286265
Applying package update to 0.58.0-vnext.139
Jun 1, 2019
6e0c1de
Minor readme updates (#2548)
harinikmsft Jun 2, 2019
08c02ea
Applying package update to 0.58.0-vnext.140
Jun 2, 2019
4b9c9f2
PerfCompare app (#2512)
jonthysell Jun 3, 2019
700c39d
Applying package update to 0.58.0-vnext.141
Jun 3, 2019
52c2b0e
Update to [email protected] (#2554)
acoates-ms Jun 4, 2019
300e7fe
Update typescript version to 3.5.1 (#2558)
acoates-ms Jun 4, 2019
4eb4557
Applying package update to 0.58.0-vnext.142
Jun 4, 2019
97ac398
ScrollView.scrollEnabled property (#2488)
StephenLPeters Jun 4, 2019
b6259e6
Applying package update to 0.58.0-vnext.143
Jun 4, 2019
f037d7c
Replace isInt() with isNumber() and get/asInt() with asDouble(), some…
StephenLPeters Jun 5, 2019
4230975
Applying package update to 0.58.0-vnext.144
Jun 5, 2019
4efa86d
fix(CLI): Ensure CLI downloads current version (#2559)
rozele Jun 5, 2019
96b1bf5
Applying package update to 0.58.0-vnext.145
Jun 5, 2019
57cb035
move UWP PRs to hosted machines (#2562)
acoates-ms Jun 5, 2019
979ad7f
Dont require office nuget feed (#2569)
acoates-ms Jun 5, 2019
b171b2b
Applying package update to 0.58.0-vnext.146
Jun 5, 2019
f973b91
Removing default padding on FlyoutPresenter (#2567)
KAnder425 Jun 5, 2019
61930a1
Applying package update to 0.58.0-vnext.147
Jun 5, 2019
0f0a901
Update to [email protected] (#2572)
acoates-ms Jun 5, 2019
49aa6f1
fixes to FormData network support (#2570)
ahimberg Jun 5, 2019
8832f8b
Applying package update to 0.58.0-vnext.148
Jun 5, 2019
e4ca73c
Cleaning up XAML Flyout when shadow node view is dropped. (#2564)
KAnder425 Jun 5, 2019
1dab41f
Applying package update to 0.58.0-vnext.149
Jun 6, 2019
0b170a9
Commiting proposal process files (#2571)
harinikmsft Jun 6, 2019
4afc68d
Applying package update to 0.58.0-vnext.150
Jun 6, 2019
22146f3
[Current] Update msbuildtools.js with VS 2019 path (#2583)
marlenecota Jun 6, 2019
74aff42
Fix nuget packages path (#2582)
marlenecota Jun 7, 2019
a8295b4
Picker layout fix (WI:3391028) (#2584)
KAnder425 Jun 7, 2019
5133810
Applying package update to 0.58.0-vnext.151
Jun 7, 2019
40753c3
Applying package update to 0.58.0-vnext.152
wravery Jun 7, 2019
c9c38f3
add debug host and enable jit to the instance settings (#2585)
stecrain Jun 7, 2019
ceadd57
Applying package update to 0.58.0-vnext.153
Jun 7, 2019
e36f7cb
Move win32 CI to hosted pool (#2563)
acoates-ms Jun 7, 2019
100a9dd
Applying package update to 0.58.0-vnext.154
Jun 7, 2019
9601e89
Do not let functions under facebook::react::unicode throw upon invali…
hansenyy Jun 7, 2019
285c237
Applying package update to 0.58.0-vnext.155
Jun 7, 2019
917148b
Add basic version info to win32 dll. (#2592)
acoates-ms Jun 7, 2019
d532465
Applying package update to 0.58.0-vnext.156
Jun 7, 2019
68aa236
Applying package update to 0.58.0-vnext.157
Jun 8, 2019
fd96553
Applying package update to 0.58.0-vnext.158
Jun 8, 2019
1647786
Applying package update to 0.58.0-vnext.159
Jun 8, 2019
035eb06
Applying package update to 0.58.0-vnext.160
Jun 8, 2019
97eb217
Applying package update to 0.58.0-vnext.161
Jun 8, 2019
a02b869
Prevent publish loop
acoates-ms Jun 8, 2019
9851d81
Applying package update to 0.58.0-vnext.162
Jun 8, 2019
ea56c28
Applying package update to 0.58.0-vnext.163
Jun 8, 2019
de59ba6
Applying package update to 0.58.0-vnext.164
Jun 8, 2019
ee73776
Applying package update to 0.58.0-vnext.165
Jun 8, 2019
c99927e
Ensure dll gets updated version before build (#2594)
acoates-ms Jun 8, 2019
bf5df38
Applying package update to 0.58.0-vnext.166
Jun 8, 2019
1d23332
Remove nmake build files (#2595)
acoates-ms Jun 9, 2019
4243fd4
Fix include (#2596)
ahimberg Jun 9, 2019
8c36f51
Applying package update to 0.58.0-vnext.167
Jun 9, 2019
b0888da
Fix publish script
acoates-ms Jun 9, 2019
258ee32
Applying package update to 0.58.0-vnext.168
Jun 9, 2019
da71ae2
Update target version to 19h1 and set XamlRoot for Flyout (#2456)
licanhua Jun 10, 2019
a9b326f
Applying package update to 0.58.0-vnext.169
Jun 10, 2019
305b1f2
Update to [email protected] (#2600)
acoates-ms Jun 11, 2019
9cc0219
Implemented accessibilityLiveRegion (#2591)
jonthysell Jun 11, 2019
2bcc778
Applying package update to 0.58.0-vnext.170
Jun 11, 2019
720818c
Merge remote-tracking branch 'upstream/master'
khetanashita Jun 12, 2019
2106f12
Add flyout offset props
khetanashita Jun 12, 2019
affd00e
Took care of review comments
khetanashita Jun 12, 2019
5f8fcc7
merge with master
khetanashita Jun 24, 2019
c025fff
flyout RS4 crash fix
khetanashita Jun 25, 2019
edf0305
Changes in response to Chris' suggestions
khetanashita Jun 26, 2019
98862e8
Took care of Andy's suggestion
khetanashita Jun 26, 2019
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
92 changes: 30 additions & 62 deletions vnext/ReactUWP/Views/FlyoutViewManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,70 +17,44 @@ namespace winrt {
using namespace Windows::UI::Xaml::Interop;
}

static const std::map<std::string, winrt::FlyoutPlacementMode> placementModeMinVersion = {
khetanashita marked this conversation as resolved.
Show resolved Hide resolved
{"top", winrt::FlyoutPlacementMode::Top},
{"bottom", winrt::FlyoutPlacementMode::Bottom},
{"left", winrt::FlyoutPlacementMode::Left},
{"right", winrt::FlyoutPlacementMode::Right},
{"full", winrt::FlyoutPlacementMode::Full}
};

static const std::map<std::string, winrt::FlyoutPlacementMode> placementModeRS5 = {
{"top", winrt::FlyoutPlacementMode::Top},
{"bottom", winrt::FlyoutPlacementMode::Bottom},
{"left", winrt::FlyoutPlacementMode::Left},
{"right", winrt::FlyoutPlacementMode::Right},
{"full", winrt::FlyoutPlacementMode::Full},
{"top-edge-aligned-left", winrt::FlyoutPlacementMode::TopEdgeAlignedLeft},
{"top-edge-aligned-right", winrt::FlyoutPlacementMode::TopEdgeAlignedRight},
{"bottom-edge-aligned-left", winrt::FlyoutPlacementMode::BottomEdgeAlignedLeft},
{"bottom-edge-aligned-right", winrt::FlyoutPlacementMode::BottomEdgeAlignedRight},
{"left-edge-aligned-top", winrt::FlyoutPlacementMode::LeftEdgeAlignedTop},
{"left-edge-aligned-bottom", winrt::FlyoutPlacementMode::LeftEdgeAlignedBottom},
{"right-edge-aligned-top", winrt::FlyoutPlacementMode::RightEdgeAlignedTop},
{"right-edge-aligned-bottom", winrt::FlyoutPlacementMode::RightEdgeAlignedBottom}
};

template<>
struct json_type_traits<winrt::FlyoutPlacementMode>
{
static winrt::FlyoutPlacementMode parseJson(const folly::dynamic& json)
{
winrt::FlyoutPlacementMode placement;
if (json == "top")
{
placement = winrt::FlyoutPlacementMode::Top;
}
else if (json == "bottom")
{
placement = winrt::FlyoutPlacementMode::Bottom;
}
else if (json == "left")
{
placement = winrt::FlyoutPlacementMode::Left;
}
else if (json == "right")
{
placement = winrt::FlyoutPlacementMode::Right;
}
else if (json == "top-edge-aligned-left")
{
placement = winrt::FlyoutPlacementMode::TopEdgeAlignedLeft;
}
else if (json == "top-edge-aligned-right")
{
placement = winrt::FlyoutPlacementMode::TopEdgeAlignedRight;
}
else if (json == "bottom-edge-aligned-left")
{
placement = winrt::FlyoutPlacementMode::BottomEdgeAlignedLeft;
}
else if (json == "bottom-edge-aligned-right")
{
placement = winrt::FlyoutPlacementMode::BottomEdgeAlignedRight;
}
else if (json == "left-edge-aligned-top")
{
placement = winrt::FlyoutPlacementMode::LeftEdgeAlignedTop;
}
else if (json == "right-edge-aligned-top")
{
placement = winrt::FlyoutPlacementMode::RightEdgeAlignedTop;
}
else if (json == "left-bottom")
{
placement = winrt::FlyoutPlacementMode::LeftEdgeAlignedBottom;
}
else if (json == "right-edge-aligned-bottom")
{
placement = winrt::FlyoutPlacementMode::RightEdgeAlignedBottom;
}
else if (json == "full")
{
placement = winrt::FlyoutPlacementMode::Full;
}
else
auto placementMode = !!(winrt::Flyout().try_as<winrt::IFlyoutBase5>()) ? placementModeRS5 : placementModeMinVersion;
auto iter = placementMode.find(json.asString());

if (iter != placementMode.end())
{
placement = winrt::FlyoutPlacementMode::Top;
return iter->second;
}

return placement;
return winrt::FlyoutPlacementMode::Right;
}
};

Expand Down Expand Up @@ -273,12 +247,6 @@ void FlyoutShadowNode::updateProperties(const folly::dynamic&& props)
m_showOptions.Position(newPoint);
}

if (m_isFlyoutShowOptionsSupported)
{
winrt::Rect exclusionRect = winrt::Rect(100, 100, 20, 20);
m_showOptions.ExclusionRect(exclusionRect);
}

if (updateIsOpen)
{
if (m_isOpen)
Expand Down