Merge pull request #818 from dmitrylyzo/fix_focusscale

Fix cropping of scaled card (TV layout)
This commit is contained in:
dkanada
2020-02-19 16:45:00 +09:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ define(["layoutManager", "loading", "libraryBrowser", "cardBuilder", "lazyLoader
var scrollXClass = "scrollX hiddenScrollX";
if (layoutManager.tv) {
scrollXClass += "smoothScrollX";
scrollXClass += "smoothScrollX padded-top-focusscale padded-bottom-focusscale";
}
html += '<div is="emby-itemscontainer" class="itemsContainer ' + scrollXClass + ' lazy padded-left padded-right" data-id="' + item.Id + '">';

View File

@@ -178,6 +178,8 @@ define(["events", "layoutManager", "inputManager", "userSettings", "libraryMenu"
if (layoutManager.tv) {
elem.classList.add("smoothScrollX");
elem.classList.add("padded-top-focusscale");
elem.classList.add("padded-bottom-focusscale");
}
elem.classList.add("scrollX");

View File

@@ -147,7 +147,7 @@ define(["layoutManager", "loading", "libraryBrowser", "cardBuilder", "lazyLoader
if (enableScrollX()) {
var scrollXClass = "scrollX hiddenScrollX";
if (layoutManager.tv) {
scrollXClass += "smoothScrollX";
scrollXClass += "smoothScrollX padded-top-focusscale padded-bottom-focusscale";
}
html += '<div is="emby-itemscontainer" class="itemsContainer ' + scrollXClass + ' lazy padded-left padded-right" data-id="' + item.Id + '">';
} else {