[epiphany/mcatanzaro/overview-placeholders: 2/2] overview.js: Fix setThumbnailPath
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/overview-placeholders: 2/2] overview.js: Fix setThumbnailPath
- Date: Fri, 12 Jul 2019 01:22:12 +0000 (UTC)
commit 76a0b36b22ee5e282b62ff5dad2967f53b6a3f60
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Jul 11 20:16:39 2019 -0500
overview.js: Fix setThumbnailPath
I don't know JavaScript well enough to know why this doesn't work, but
it doesn't work.
embed/web-process-extension/resources/js/overview.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/embed/web-process-extension/resources/js/overview.js
b/embed/web-process-extension/resources/js/overview.js
index 797b757fa..5334de2ef 100644
--- a/embed/web-process-extension/resources/js/overview.js
+++ b/embed/web-process-extension/resources/js/overview.js
@@ -237,10 +237,11 @@ Ephy.Overview.Item = class OverviewItem
setThumbnailPath(path)
{
if (path) {
- this._thumbnail.style.background = 'url(file://' + path + '); background-size: 100%';
+ this._thumbnail.style.backgroundImage = 'url(file://' + path + ')';
+ this._thumbnail.style.backgroundSize = '100%';
+ } else {
+ this._thumbnail.style.backgroundImage = '';
}
- else
- this._thumbnail.style.background = null;
}
detachFromParent()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]