fix #945 (list doesn't react to manage titles/names dialog resize)
This commit is contained in:
parent
148912ab37
commit
1364737d09
2 changed files with 124 additions and 102 deletions
|
@ -162,6 +162,17 @@ pandora.ui.namesDialog = function() {
|
|||
padding: 0,
|
||||
title: 'Manage Names',
|
||||
width: width
|
||||
})
|
||||
.bindEvent({
|
||||
resizeend: function(data) {
|
||||
var width = (data.width - 64 - Ox.UI.SCROLLBAR_SIZE) / 2;
|
||||
[
|
||||
{id: 'name', width: Math.ceil(width)},
|
||||
{id: 'sortname', width: Math.floor(width)}
|
||||
].forEach(function(column) {
|
||||
$list.resizeColumn(column.id, column.width);
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
||||
$status = $('<div>')
|
||||
|
|
|
@ -151,6 +151,17 @@ pandora.ui.titlesDialog = function() {
|
|||
padding: 0,
|
||||
title: 'Manage Titles',
|
||||
width: width
|
||||
})
|
||||
.bindEvent({
|
||||
resizeend: function(data) {
|
||||
var width = (data.width - Ox.UI.SCROLLBAR_SIZE) / 2;
|
||||
[
|
||||
{id: 'title', width: Math.ceil(width)},
|
||||
{id: 'sorttitle', width: Math.floor(width)}
|
||||
].forEach(function(column) {
|
||||
$list.resizeColumn(column.id, column.width);
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
||||
$status = $('<div>')
|
||||
|
|
Loading…
Reference in a new issue