mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-10-25 06:17:38 -05:00
SDA-3534 Centering SDA snipping tool (#1311)
This commit is contained in:
1 parent
11af9b3eac
commit
312af153ca
1 file changed
+2
-1
@@ -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()),
|
||||
|
||||
Reference in new issue
Block a user