mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-3534 Snipping tool width shouldn't be greater than screen width and height (#1325)
This commit is contained in:
parent
cc2113eed7
commit
3d2bdbc23b
@ -1172,9 +1172,7 @@ export class WindowHandler {
|
|||||||
// Snipping tool height shouldn't be greater than min of screen width and height (screen orientation can be portrait or landscape)
|
// Snipping tool height shouldn't be greater than min of screen width and height (screen orientation can be portrait or landscape)
|
||||||
const minSize = Math.min(workAreaSize.width, workAreaSize.height);
|
const minSize = Math.min(workAreaSize.width, workAreaSize.height);
|
||||||
const maxToolHeight = Math.floor(calculatePercentage(minSize, 90));
|
const maxToolHeight = Math.floor(calculatePercentage(minSize, 90));
|
||||||
const maxToolWidth = Math.floor(
|
const maxToolWidth = Math.floor(calculatePercentage(minSize, 90));
|
||||||
calculatePercentage(workAreaSize.width, 90),
|
|
||||||
);
|
|
||||||
const availableAnnotateAreaHeight = maxToolHeight - BUTTON_BARS_HEIGHT;
|
const availableAnnotateAreaHeight = maxToolHeight - BUTTON_BARS_HEIGHT;
|
||||||
const availableAnnotateAreaWidth = maxToolWidth;
|
const availableAnnotateAreaWidth = maxToolWidth;
|
||||||
const scaleFactor = display.scaleFactor;
|
const scaleFactor = display.scaleFactor;
|
||||||
|
Loading…
Reference in New Issue
Block a user