diff --git a/Core/Notification/Screenshot/FormNotificationScreenshotable.cs b/Core/Notification/Screenshot/FormNotificationScreenshotable.cs index d86f2dcc..f58fefa1 100644 --- a/Core/Notification/Screenshot/FormNotificationScreenshotable.cs +++ b/Core/Notification/Screenshot/FormNotificationScreenshotable.cs @@ -34,7 +34,7 @@ public FormNotificationScreenshotable(Action callback, FormBrowser owner, Plugin }; LoadTweet(new TweetNotification(string.Empty, string.Empty, string.Empty, html, 0, string.Empty, string.Empty)); - SetScreenshotHeight(0); + SetScreenshotHeight(1); } protected override string GetTweetHTML(TweetNotification tweet){ diff --git a/Resources/Scripts/screenshot.js b/Resources/Scripts/screenshot.js index 9d6ea716..0f84f153 100644 --- a/Resources/Scripts/screenshot.js +++ b/Resources/Scripts/screenshot.js @@ -1,6 +1,6 @@ (function($TD){ let ele = document.getElementsByTagName("article")[0]; - ele.style.width = Math.floor(window.outerWidth/window.devicePixelRatio)+"px"; + ele.style.width = window.innerWidth+"px"; ele.style.position = "absolute"; let contentHeight = ele.offsetHeight;