mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-3534 Centering SDA snipping tool (#1311)
This commit is contained in:
parent
11af9b3eac
commit
312af153ca
@ -1283,12 +1283,13 @@ export class WindowHandler {
|
||||
windowBounds.width !== toolWidth
|
||||
) {
|
||||
logger.info(
|
||||
'window-handler: Could not create window with correct size, resizing with setBounds',
|
||||
'window-handler: Could not create window with correct size, resizing with setBounds and centering with center',
|
||||
);
|
||||
this.snippingToolWindow.setBounds({
|
||||
height: toolHeight,
|
||||
width: toolWidth,
|
||||
});
|
||||
this.snippingToolWindow.center();
|
||||
logger.info(
|
||||
'window-handler: window bounds after resizing: ' +
|
||||
JSON.stringify(this.snippingToolWindow.getBounds()),
|
||||
|
Loading…
Reference in New Issue
Block a user