mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
9d8820cd93
commit
bdc77cd46d
6 changed files with 13 additions and 15 deletions
|
@ -14,12 +14,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.4.164",
|
"version": "1.4.165",
|
||||||
"_release": "1.4.164",
|
"_release": "1.4.165",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.4.164",
|
"tag": "1.4.165",
|
||||||
"commit": "cb3f0c04702e4aa460840d7587c92f11f0ec6c33"
|
"commit": "ebe71bd8b4505ceb207efb226686eb6c3e842b4c"
|
||||||
},
|
},
|
||||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "^1.2.1",
|
"_target": "^1.2.1",
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
//}
|
//}
|
||||||
|
|
||||||
itemShortcuts.showContextMenu(card, {
|
itemShortcuts.showContextMenu(card, {
|
||||||
identify: false,
|
|
||||||
positionTo: target,
|
positionTo: target,
|
||||||
itemsContainer: itemsContainer
|
itemsContainer: itemsContainer
|
||||||
});
|
});
|
||||||
|
|
|
@ -447,8 +447,6 @@ define(['browser', 'layoutManager', 'dom', 'scrollStyles'], function (browser, l
|
||||||
*/
|
*/
|
||||||
self.getPos = function (item) {
|
self.getPos = function (item) {
|
||||||
|
|
||||||
var doc = document;
|
|
||||||
|
|
||||||
var slideeOffset = getBoundingClientRect(slideeElement);
|
var slideeOffset = getBoundingClientRect(slideeElement);
|
||||||
var itemOffset = getBoundingClientRect(item);
|
var itemOffset = getBoundingClientRect(item);
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,14 @@ define(['focusManager', 'dom', 'scrollStyles'], function (focusManager, dom) {
|
||||||
|
|
||||||
function getPosition(scrollContainer, item, horizontal) {
|
function getPosition(scrollContainer, item, horizontal) {
|
||||||
|
|
||||||
var offsets = getOffsets([scrollContainer, item]);
|
var slideeOffset = getBoundingClientRect(scrollContainer);
|
||||||
var slideeOffset = offsets[0];
|
var itemOffset = getBoundingClientRect(item);
|
||||||
var itemOffset = offsets[1];
|
|
||||||
|
|
||||||
var offset = horizontal ? itemOffset.left - slideeOffset.left : itemOffset.top - slideeOffset.top;
|
var offset = horizontal ? itemOffset.left - slideeOffset.left : itemOffset.top - slideeOffset.top;
|
||||||
var size = item[horizontal ? 'offsetWidth' : 'offsetHeight'];
|
var size = horizontal ? itemOffset.width : itemOffset.height;
|
||||||
|
if (!size) {
|
||||||
|
size = item[horizontal ? 'offsetWidth' : 'offsetHeight'];
|
||||||
|
}
|
||||||
|
|
||||||
if (horizontal) {
|
if (horizontal) {
|
||||||
offset += scrollContainer.scrollLeft;
|
offset += scrollContainer.scrollLeft;
|
||||||
|
|
|
@ -257,7 +257,6 @@ define(['playbackManager', 'inputManager', 'connectionManager', 'embyRouter', 'g
|
||||||
} :
|
} :
|
||||||
{};
|
{};
|
||||||
|
|
||||||
options.identify = false;
|
|
||||||
options.positionTo = target;
|
options.positionTo = target;
|
||||||
|
|
||||||
showContextMenu(card, options);
|
showContextMenu(card, options);
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://github.com/Polymer/polymer",
|
"homepage": "https://github.com/polymer/polymer",
|
||||||
"_release": "1.6.1",
|
"_release": "1.6.1",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.6.1",
|
"tag": "v1.6.1",
|
||||||
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/Polymer/polymer.git",
|
"_source": "git://github.com/polymer/polymer.git",
|
||||||
"_target": "^1.1.0",
|
"_target": "^1.1.0",
|
||||||
"_originalSource": "Polymer/polymer"
|
"_originalSource": "polymer/polymer"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue