mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -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)
|
||||
const minSize = Math.min(workAreaSize.width, workAreaSize.height);
|
||||
const maxToolHeight = Math.floor(calculatePercentage(minSize, 90));
|
||||
const maxToolWidth = Math.floor(
|
||||
calculatePercentage(workAreaSize.width, 90),
|
||||
);
|
||||
const maxToolWidth = Math.floor(calculatePercentage(minSize, 90));
|
||||
const availableAnnotateAreaHeight = maxToolHeight - BUTTON_BARS_HEIGHT;
|
||||
const availableAnnotateAreaWidth = maxToolWidth;
|
||||
const scaleFactor = display.scaleFactor;
|
||||
|
Loading…
Reference in New Issue
Block a user