mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-14 21:15:48 +02:00
Fix wrong screenshot size when browser zoom is not 100%
This commit is contained in:
parent
44595bad40
commit
5a305a6740
@ -48,7 +48,7 @@ protected override string GetTweetHTML(TweetNotification tweet){
|
||||
}
|
||||
|
||||
private void SetScreenshotHeight(int height){
|
||||
SetNotificationSize(width, height); // TODO test how it works on high DPI, probably not great?
|
||||
SetNotificationSize(width, height);
|
||||
}
|
||||
|
||||
public void TakeScreenshot(){
|
||||
|
@ -1,6 +1,6 @@
|
||||
(function($TD){
|
||||
let ele = document.getElementsByTagName("article")[0];
|
||||
ele.style.width = window.outerWidth+"px";
|
||||
ele.style.width = Math.floor(window.outerWidth/window.devicePixelRatio)+"px";
|
||||
|
||||
ele.style.position = "absolute";
|
||||
let contentHeight = ele.offsetHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user