Skip to content

Commit

Permalink
fixed positioning of nodes using getnewnodeposition function not taki…
Browse files Browse the repository at this point in the history
…ng bottom window into account
  • Loading branch information
M-Wicenec committed Nov 25, 2024
1 parent 5e8b0cb commit 095b8a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Eagle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4290,7 +4290,8 @@ export class Eagle {
let minX = Setting.findValue(Setting.LEFT_WINDOW_VISIBLE) ? this.leftWindow().size()+MARGIN: 0+MARGIN;
let maxX = Setting.findValue(Setting.RIGHT_WINDOW_VISIBLE) ? $('#logicalGraphParent').width() - this.rightWindow().size() - MARGIN : $('#logicalGraphParent').width() - MARGIN;
let minY = 0 + navBarHeight + MARGIN;
let maxY = $('#logicalGraphParent').height() - MARGIN + navBarHeight;
//using jquery here to get the bottom window height because it is internally saved in VH (percentage screen height). Doing it this way means we dont have to convert it to pixels
let maxY = $('#logicalGraphParent').height() - $('#bottomWindow').height() - MARGIN + navBarHeight;
if(increaseSearchArea){
minX = minX - 300
maxX = maxX + 300
Expand Down

0 comments on commit 095b8a7

Please sign in to comment.