From 42afd3132579009902433cb0c2526564571c248e Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Fri, 6 Jul 2018 19:48:35 +0200 Subject: [PATCH] default window width fixes --- scripts/system/edit.js | 6 +++--- scripts/system/libraries/entityList.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/system/edit.js b/scripts/system/edit.js index 104ffc2e7f..464ccf2995 100644 --- a/scripts/system/edit.js +++ b/scripts/system/edit.js @@ -37,7 +37,7 @@ Script.include([ var CreateWindow = Script.require('./modules/createWindow.js'); var TITLE_OFFSET = 60; -var ENTITY_LIST_WIDTH = 470; +var CREATE_TOOLS_WIDTH = 490; var MAX_DEFAULT_ENTITY_LIST_HEIGHT = 942; var createToolsWindow = new CreateWindow( @@ -51,11 +51,11 @@ var createToolsWindow = new CreateWindow( } return { size: { - x: ENTITY_LIST_WIDTH, + x: CREATE_TOOLS_WIDTH, y: windowHeight }, position: { - x: Window.x + Window.innerWidth - ENTITY_LIST_WIDTH, + x: Window.x + Window.innerWidth - CREATE_TOOLS_WIDTH, y: Window.y + TITLE_OFFSET } } diff --git a/scripts/system/libraries/entityList.js b/scripts/system/libraries/entityList.js index 539751b12f..1edcc82b0d 100644 --- a/scripts/system/libraries/entityList.js +++ b/scripts/system/libraries/entityList.js @@ -17,7 +17,7 @@ EntityListTool = function() { var CreateWindow = Script.require('../modules/createWindow.js'); var TITLE_OFFSET = 60; - var CREATE_TOOLS_WIDTH = 495; + var ENTITY_LIST_WIDTH = 495; var MAX_DEFAULT_CREATE_TOOLS_HEIGHT = 778; var entityListWindow = new CreateWindow( Script.resourcesPath() + "qml/hifi/tablet/EditEntityList.qml", @@ -30,7 +30,7 @@ EntityListTool = function() { } return { size: { - x: CREATE_TOOLS_WIDTH, + x: ENTITY_LIST_WIDTH, y: windowHeight }, position: {