forked from 0x2620/pandora
fix entities dialog
This commit is contained in:
parent
bdc7d7aa1f
commit
1a73cdcaa7
1 changed files with 3 additions and 3 deletions
|
@ -390,7 +390,7 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateForm() {
|
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) {
|
$labels.forEach(function($label) {
|
||||||
$label.options({width: width});
|
$label.options({width: width});
|
||||||
});
|
});
|
||||||
|
@ -401,8 +401,8 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
|
|
||||||
function updateList() {
|
function updateList() {
|
||||||
var width = $content.options('elements')[0].size;
|
var width = $content.options('elements')[0].size;
|
||||||
$entitiesSelect.options({width: Math.ceil((size - 12) / 2)});
|
$entitiesSelect.options({width: Math.ceil((width - 12) / 2)});
|
||||||
$findInput.options({width: Math.floor((size - 12) / 2)});
|
$findInput.options({width: Math.floor((width - 12) / 2)});
|
||||||
$list.size();
|
$list.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue