more scrollbars, but avoid horizontal

This commit is contained in:
j 2016-09-23 23:43:28 +02:00
parent 2faacac5a8
commit 4338315d57
3 changed files with 5 additions and 3 deletions

View file

@ -66,7 +66,7 @@ pandora.ui.addFilesDialog = function(options) {
title: Ox._('Size'), title: Ox._('Size'),
align: 'right', align: 'right',
visible: true, visible: true,
width: 128 width: 110
}, },
{ {
id: 'width', id: 'width',
@ -82,7 +82,7 @@ pandora.ui.addFilesDialog = function(options) {
items: options.items.map(function(value, index) { items: options.items.map(function(value, index) {
return Ox.extend(value, {index: index}) return Ox.extend(value, {index: index})
}), }),
scrollbarsVisible: true, scrollbarVisible: true,
sort: [{key: 'index', operator: '+'}], sort: [{key: 'index', operator: '+'}],
sortable: true sortable: true
}).css({ }).css({

View file

@ -131,6 +131,7 @@ pandora.ui.addItemDialog = function(options) {
$video.one('error', function(event) { $video.one('error', function(event) {
if (!done) { if (!done) {
done = true; done = true;
$video[0].src = ''
URL.revokeObjectURL(url); URL.revokeObjectURL(url);
callback(info); callback(info);
} }
@ -146,6 +147,7 @@ pandora.ui.addItemDialog = function(options) {
if (info.duration) { if (info.duration) {
info.bitrate = info.size * 8 / info.duration / 1000; info.bitrate = info.size * 8 / info.duration / 1000;
} }
$video[0].src = ''
URL.revokeObjectURL(url); URL.revokeObjectURL(url);
callback(info); callback(info);
} }

View file

@ -92,7 +92,7 @@ pandora.ui.tasksDialog = function(options) {
}, },
title: Ox._('Status'), title: Ox._('Status'),
visible: true, visible: true,
width: 176 width: 156
}, },
{ {
id: 'progress', id: 'progress',