Skip to content

Commit

Permalink
fixed the center grpah function
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Wicenec committed Nov 13, 2024
1 parent 9e66cdd commit 5c9d4ca
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -473,7 +473,8 @@ export class Eagle {
const centroidX = minX + ((maxX - minX) / 2);
const centroidY = minY + ((maxY - minY) / 2);

const bottomWindow = Utils.getBottomWindowHeight()
//because the saved bottom window height is a percentage, its easier to grab the height using jquery than to convert the percentage into pixels
const bottomWindow = $('#bottomWindow').height()

//calculating scale multipliers needed for each, height and width in order to fit the graph
const containerHeight = $('#logicalGraphParent').height() - bottomWindow
Expand Down
1 change: 1 addition & 0 deletions static/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ color: #00bb00;}
top: -5px;
height: 10px;
cursor: ns-resize;
z-index: 150;
}

#bottomWindow div.tabs{
Expand Down

0 comments on commit 5c9d4ca

Please sign in to comment.