From b1884b08412bf849b1c03f9a19ce91e055093003 Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Mon, 9 Jul 2018 16:38:53 +0200 Subject: [PATCH] CR fixes --- scripts/system/edit.js | 5 +++-- scripts/system/libraries/entityList.js | 2 +- scripts/system/particle_explorer/particleExplorerTool.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/system/edit.js b/scripts/system/edit.js index 5461538046..e803a07131 100644 --- a/scripts/system/edit.js +++ b/scripts/system/edit.js @@ -545,7 +545,7 @@ var toolBar = (function () { checkEditPermissionsAndUpdate(); }); - HMD.displayModeChanged.connect(function () { + HMD.displayModeChanged.connect(function() { if (isActive) { tablet.gotoHomeScreen(); } @@ -612,11 +612,12 @@ var toolBar = (function () { } else { closeExistingDialogWindow(); var qmlPath = Script.resourcesPath() + "qml/hifi/tablet/New" + entityType + "Window.qml"; + var DIALOG_WINDOW_SIZE = { x: 500, y: 300 }; dialogWindow = Desktop.createWindow(qmlPath, { title: "New " + entityType + " Entity", flags: Desktop.ALWAYS_ON_TOP | Desktop.CLOSE_BUTTON_HIDES, presentationMode: Desktop.PresentationMode.NATIVE, - size: { x: 500, y: 300 }, + size: DIALOG_WINDOW_SIZE, visible: true }); dialogWindow.fromQml.connect(fromQml); diff --git a/scripts/system/libraries/entityList.js b/scripts/system/libraries/entityList.js index 1edcc82b0d..de8e5d9c06 100644 --- a/scripts/system/libraries/entityList.js +++ b/scripts/system/libraries/entityList.js @@ -44,7 +44,7 @@ EntityListTool = function() { var webView = null; webView = Tablet.getTablet("com.highfidelity.interface.tablet.system"); - webView.setVisible = function (value) { }; + webView.setVisible = function(value){ }; var filterInView = false; var searchRadius = 100; diff --git a/scripts/system/particle_explorer/particleExplorerTool.js b/scripts/system/particle_explorer/particleExplorerTool.js index 8286115ad7..1914180ff9 100644 --- a/scripts/system/particle_explorer/particleExplorerTool.js +++ b/scripts/system/particle_explorer/particleExplorerTool.js @@ -14,7 +14,7 @@ var PARTICLE_EXPLORER_HTML_URL = Script.resolvePath('particleExplorer.html'); -ParticleExplorerTool = function (createToolsWindow) { +ParticleExplorerTool = function(createToolsWindow) { var that = {}; that.activeParticleEntity = 0; that.updatedActiveParticleProperties = {};