Skip to content

Commit

Permalink
terminal.js: Fixed a hard-coded terminal number ([1]) in GateOne.Term…
Browse files Browse the repository at this point in the history
…inal.alignTerminal().
  • Loading branch information
liftoff committed May 8, 2013
1 parent e3b38f7 commit cdc9a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateone/applications/terminal/static/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ go.Base.update(GateOne.Terminal, {
if (go.prefs.rows) { // If someone explicitly set rows/cols, scale the term to fit the screen
if (screenSpan.getClientRects()[0]) {
v.applyTransform(termPre, ''); // Have to reset in order to perform calculations
var emDimensions = u.getEmDimensions(GateOne.Terminal.terminals[1]['screenNode'], GateOne.node),
var emDimensions = u.getEmDimensions(GateOne.Terminal.terminals[term]['screenNode'], GateOne.node),
nodeHeight = screenSpan.offsetHeight + emDimensions.h, // The +1 em height compensates for the presence of the playback controls
nodeWidth = screenSpan.offsetWidth + (emDimensions.w * 2); // Making room for the toolbar
if (nodeHeight < go.node.offsetHeight) { // Resize to fit
Expand Down

0 comments on commit cdc9a07

Please sign in to comment.