| Index: chrome/browser/resources/vr_shell/vr_shell_ui_api.js
|
| diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
|
| index cefeffdaf387de0c53513159f739b31755fa4ecb..751372d09bf2c80b6f3535db40f9e4c33dc6eb33 100644
|
| --- a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
|
| +++ b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
|
| @@ -322,6 +322,9 @@ api.UiElement = class extends api.UiElementUpdate {
|
| constructor(pixelX, pixelY, pixelWidth, pixelHeight) {
|
| super();
|
|
|
| + // Apply defaults to new elements.
|
| + this.setVisible(true);
|
| + this.setHitTestable(true);
|
| this.setFill(new api.Sprite(pixelX, pixelY, pixelWidth, pixelHeight));
|
| }
|
| };
|
|
|