Debugging

This commit is contained in:
Marat Fayzullin 2023-02-13 17:10:48 -05:00
parent f1a1719e86
commit 3afc782973
2 changed files with 15 additions and 3 deletions

View File

@ -1199,9 +1199,21 @@ img.openwebrx-mirror-img
white-space: pre;
}
#openwebrx-panel-sstv-message {
height: 300px;
width: 400px;
max-width: 400px;
}
#openwebrx-panel-sstv-message tbody {
height: 270px;
width: 370px;
max-width: 370px;
}
#openwebrx-panel-sstv-message .message {
width: 586px;
max-width: 586px;
width: 370px;
max-width: 370px;
white-space: pre;
}

View File

@ -303,7 +303,7 @@ SstvMessagePanel.prototype.pushMessage = function(msg) {
$b.append($('<tr><td class="message">' + h + c + '</td></tr>'));
$b.scrollTop($b[0].scrollHeight);
// Save canvas context and dimensions for future use
this.ctx = $(this.el).find('canvas').last().getContext("2d");
this.ctx = $(this.el).find('canvas').get(-1).getContext("2d");
this.width = msg.width;
this.height = msg.height;
}