Skip to content

Commit

Permalink
fix: resolve unwanted screenshot resizing in landscape (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
eglitise authored Jul 20, 2023
1 parent 31ddb1f commit 41136de
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/renderer/components/Inspector/Inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const Inspector = (props) => {

const imgRect = img.getBoundingClientRect();
const screenshotRect = screenshotBox.getBoundingClientRect();
screenshotBox.style.flexBasis = `${imgRect.width}px`;
if (imgRect.height < screenshotRect.height) {
// get what the img width would be if it fills screenshot box height
const attemptedWidth = (screenshotRect.height / imgRect.height) * imgRect.width;
Expand Down

0 comments on commit 41136de

Please sign in to comment.