forked from 0x2620/pandora
resize
This commit is contained in:
parent
c8e8cc29ef
commit
6b8d5038c9
2 changed files with 18 additions and 1 deletions
|
@ -244,7 +244,7 @@ pandora.ui.documentFilter = function(id) {
|
||||||
}
|
}
|
||||||
function replaceFilter(i, id) {
|
function replaceFilter(i, id) {
|
||||||
var isOuter = i % 4 == 0;
|
var isOuter = i % 4 == 0;
|
||||||
pandora.$ui[isOuter ? 'browser' : 'filtersInnerPanel'].replaceElement(
|
pandora.$ui[isOuter ? 'browser' : 'documentFiltersInnerPanel'].replaceElement(
|
||||||
isOuter ? i / 2 : i - 1,
|
isOuter ? i / 2 : i - 1,
|
||||||
pandora.$ui.documentFilters[i] = pandora.ui.documentFilter(id)
|
pandora.$ui.documentFilters[i] = pandora.ui.documentFilter(id)
|
||||||
);
|
);
|
||||||
|
|
|
@ -2827,9 +2827,15 @@ pandora.resizeFilters = function(width) {
|
||||||
pandora.$ui.browser && pandora.$ui.browser
|
pandora.$ui.browser && pandora.$ui.browser
|
||||||
.size(0, pandora.user.ui.filterSizes[0])
|
.size(0, pandora.user.ui.filterSizes[0])
|
||||||
.size(2, pandora.user.ui.filterSizes[4]);
|
.size(2, pandora.user.ui.filterSizes[4]);
|
||||||
|
pandora.$ui.documentBrowser && pandora.$ui.documentBrowser
|
||||||
|
.size(0, pandora.user.ui.filterSizes[0])
|
||||||
|
.size(2, pandora.user.ui.filterSizes[4]);
|
||||||
pandora.$ui.filtersInnerPanel && pandora.$ui.filtersInnerPanel
|
pandora.$ui.filtersInnerPanel && pandora.$ui.filtersInnerPanel
|
||||||
.size(0, pandora.user.ui.filterSizes[1])
|
.size(0, pandora.user.ui.filterSizes[1])
|
||||||
.size(2, pandora.user.ui.filterSizes[3]);
|
.size(2, pandora.user.ui.filterSizes[3]);
|
||||||
|
pandora.$ui.documentFiltersInnerPanel && pandora.$ui.documentFiltersInnerPanel
|
||||||
|
.size(0, pandora.user.ui.filterSizes[1])
|
||||||
|
.size(2, pandora.user.ui.filterSizes[3]);
|
||||||
pandora.$ui.filters && pandora.$ui.filters.forEach(function($list, i) {
|
pandora.$ui.filters && pandora.$ui.filters.forEach(function($list, i) {
|
||||||
$list.resizeColumn(
|
$list.resizeColumn(
|
||||||
'name',
|
'name',
|
||||||
|
@ -2841,6 +2847,17 @@ pandora.resizeFilters = function(width) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
pandora.$ui.documentFilters && pandora.$ui.documentFilters.forEach(function($list, i) {
|
||||||
|
$list.resizeColumn(
|
||||||
|
'name',
|
||||||
|
pandora.user.ui.filterSizes[i] - 44 - Ox.UI.SCROLLBAR_SIZE
|
||||||
|
);
|
||||||
|
if (pandora.site.flags) {
|
||||||
|
$list.find('.flagname').css({
|
||||||
|
width: pandora.user.ui.filterSizes[i] - 68 - Ox.UI.SCROLLBAR_SIZE
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.resizeFolders = function(section) {
|
pandora.resizeFolders = function(section) {
|
||||||
|
|
Loading…
Reference in a new issue