@@ -1256,22 +1256,23 @@ namespace winrt::TerminalApp::implementation
1256
1256
1257
1257
// Create a thickness for the new margins
1258
1258
auto newMargin = Windows::UI::Xaml::ThicknessHelper::FromLengths (clampedX, 0 , 0 , 0 );
1259
- // Now, position vertically.
1260
- if (_direction == TerminalApp::SuggestionsDirection::TopDown)
1261
- {
1262
- // The control should open right below the cursor, with the list
1263
- // extending below. This is easy, we can just use the cursor as the
1264
- // origin (more or less)
1265
- newMargin.Top = (_anchor.Y /* - descriptionSize.height*/ );
1266
- }
1267
- else
1268
- {
1269
- // Position at the cursor. The suggestions UI itself will maintain
1270
- // its own offset such that it's always above its origin
1271
- // NO newMargin.Top = (_anchor.Y - actualSize.height /* - descriptionSize.height*/);
1272
- newMargin.Top = (_anchor.Y - actualSize.height - descriptionSize.height );
1273
- }
1259
+ // // Now, position vertically.
1260
+ // if (_direction == TerminalApp::SuggestionsDirection::TopDown)
1261
+ // {
1262
+ // // The control should open right below the cursor, with the list
1263
+ // // extending below. This is easy, we can just use the cursor as the
1264
+ // // origin (more or less)
1265
+ // newMargin.Top = (_anchor.Y /* - descriptionSize.height*/);
1266
+ // }
1267
+ // else
1268
+ // {
1269
+ // // Position at the cursor. The suggestions UI itself will maintain
1270
+ // // its own offset such that it's always above its origin
1271
+ // // NO newMargin.Top = (_anchor.Y - actualSize.height /* - descriptionSize.height*/);
1272
+ // newMargin.Top = (_anchor.Y - actualSize.height - descriptionSize.height);
1273
+ // }
1274
1274
Margin (newMargin);
1275
+ _recalculateTopMargin ();
1275
1276
1276
1277
_searchBox ().Text (filter);
1277
1278
0 commit comments