History

recenter log window when enter and exiting hmd mode

Dante Ruiz committed 7 years ago

Commit 20d933c1 parent b5a1dc51 file · +9 −0Browse files

Showing the changes to scripts/developer/debugging/debugWindow.js (1 of 1 file). Show all

Unified · Split

scripts/developer/debugging/debugWindow.js+9−0
@@ -68,14 +68,23 @@ var window = new OverlayWindow({ · 67 unmodified lines
68 68
69if (hasPosition) {69if (hasPosition) {
70 window.setPosition(windowX, windowY);70 window.setPosition(windowX, windowY);
71};
72
73function recenterWindow() {
74 window.setPosition(100, 100);
71}75}
72 76
73window.visibleChanged.connect(function() {77window.visibleChanged.connect(function() {
74 if (!window.visible) {78 if (!window.visible) {
75 window.setVisible(true);79 window.setVisible(true);
80 recenterWindow();
76 }81 }
77});82});
78 83
84HMD.displayModeChanged.connect(function(isHMDMode) {
85 recenterWindow();
86});
87
79window.closed.connect(function () { Script.stop(); });88window.closed.connect(function () { Script.stop(); });
80 89
81function shouldLogMessage(scriptFileName) {90function shouldLogMessage(scriptFileName) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t