Skip to content

Commit

Permalink
Fixes to last commit on testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Jan 3, 2025
1 parent 2b0753f commit dfd0659
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '@minsky/core';
import {
events,
isWindows,
Functions,
VariablePane,
} from '@minsky/shared';
import { fromEvent, Observable, Subject, takeUntil } from 'rxjs';
Expand Down Expand Up @@ -71,7 +71,7 @@ export class VariablePaneComponent implements OnDestroy, AfterViewInit {

this.leftOffset = Math.round(clientRect.left);
// 20 pixel offset to allow for selector buttons. Not needed on Windows for some reason.
this.topOffset = isWindows()? 0: 20;
this.topOffset = this.electronService.platform=='win32'? 0: 20;

this.height = Math.round(this.variablePaneContainer.clientHeight);
this.width = Math.round(this.variablePaneContainer.clientWidth-this.topOffset);
Expand Down

0 comments on commit dfd0659

Please sign in to comment.