From 1a73cdcaa77c2ed68c4f9d99d8fb2fcd8899634c Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 20 Nov 2014 19:52:41 +0000 Subject: [PATCH] fix entities dialog --- static/js/entitiesDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index b4340b22..6e34da97 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -390,7 +390,7 @@ pandora.ui.entitiesDialog = function(options) { } function updateForm() { - var width = $content.options('elements')[2].size - 8; + var width = $content.options('elements')[2].size - 16 - Ox.SCROLLBAR_SIZE; $labels.forEach(function($label) { $label.options({width: width}); }); @@ -401,8 +401,8 @@ pandora.ui.entitiesDialog = function(options) { function updateList() { var width = $content.options('elements')[0].size; - $entitiesSelect.options({width: Math.ceil((size - 12) / 2)}); - $findInput.options({width: Math.floor((size - 12) / 2)}); + $entitiesSelect.options({width: Math.ceil((width - 12) / 2)}); + $findInput.options({width: Math.floor((width - 12) / 2)}); $list.size(); }