| Index: chrome/browser/android/vr_shell/ui_scene_manager.cc
|
| diff --git a/chrome/browser/android/vr_shell/ui_scene_manager.cc b/chrome/browser/android/vr_shell/ui_scene_manager.cc
|
| index 3a4b2e058eeb980cc182aaad6de3418d00aca050..a435bf50fd2d5c5316b83e875fb8afc517e4a1df 100644
|
| --- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
|
| +++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
|
| @@ -596,10 +596,13 @@ void UiSceneManager::ConfigureIndicators() {
|
|
|
| // Position elements dynamically relative to each other, based on which
|
| // indicators are showing, and how big each one is.
|
| - float total_width = kIndicatorGap * (system_indicators_.size() - 1);
|
| + float total_width = 0;
|
| for (const UiElement* indicator : system_indicators_) {
|
| - if (indicator->visible())
|
| + if (indicator->visible()) {
|
| + if (total_width > 0)
|
| + total_width += kIndicatorGap;
|
| total_width += indicator->size().x();
|
| + }
|
| }
|
| float x_position = -total_width / 2;
|
| for (UiElement* indicator : system_indicators_) {
|
|
|