mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-09-03 23:53:09 +02:00
Fix wrong screenshot size when browser zoom is not 100%
This commit is contained in:
@@ -48,7 +48,7 @@ namespace TweetDuck.Core.Notification.Screenshot{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void SetScreenshotHeight(int height){
|
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(){
|
public void TakeScreenshot(){
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
(function($TD){
|
(function($TD){
|
||||||
let ele = document.getElementsByTagName("article")[0];
|
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";
|
ele.style.position = "absolute";
|
||||||
let contentHeight = ele.offsetHeight;
|
let contentHeight = ele.offsetHeight;
|
||||||
|
Reference in New Issue
Block a user