diff --git a/chrome/browser/vr/ui_scene_creator.cc b/chrome/browser/vr/ui_scene_creator.cc index d037397b7cee..184f00acdbb2 100644 --- a/chrome/browser/vr/ui_scene_creator.cc +++ b/chrome/browser/vr/ui_scene_creator.cc @@ -2415,7 +2415,7 @@ void UiSceneCreator::CreateOmnibox() { e->SetTransitionedProperties({}); y_offset += kUrlBarVerticalOffsetDMM; } - e->SetTranslate(0, y_offset, kOmniboxShadowOffset); + e->SetTranslate(0, y_offset, -kOmniboxShadowOffset); }, shadow.get()))); @@ -2623,6 +2623,7 @@ void UiSceneCreator::CreateOmnibox() { omnibox_background->set_hit_testable(true); omnibox_background->set_focusable(false); omnibox_background->set_corner_radius(kOmniboxCornerRadiusDMM); + omnibox_background->SetTranslate(0, 0, kOmniboxShadowOffset); VR_BIND_COLOR(model_, omnibox_background.get(), &ColorScheme::omnibox_background, &Rect::SetColor); omnibox_background->AddChild(std::move(omnibox_outer_layout));