Skip to content

Commit

Permalink
[HTML Report] Fix non-centred text in panels
Browse files Browse the repository at this point in the history
- Fix from JB Sarrodie
  • Loading branch information
Phillipus committed Aug 19, 2024
1 parent f0292fa commit f199634
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions com.archimatetool.reports/templates/html/js/frame.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function setRootPanelHeight() {
$('.root-panel-body').css('height', $('.root-panel').outerHeight() - $('.root-panel-heading').outerHeight());
function setRootPanelHeight() {
rootPanelHeight = $('.root-panel').outerHeight() || 0;
rootPanelHeadingHeight = $('.root-panel-heading').outerHeight() || 0;
$('.root-panel-body').css('height', rootPanelHeight - rootPanelHeadingHeight);
}

function strcmp(a, b){
Expand Down
6 changes: 4 additions & 2 deletions com.archimatetool.reports/templates/html/js/model.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function setRootPanelHeight() {
$('.root-panel-body').css('height', $('.root-panel').outerHeight() - $('.root-panel-heading').outerHeight());
function setRootPanelHeight() {
rootPanelHeight = $('.root-panel').outerHeight() || 0;
rootPanelHeadingHeight = $('.root-panel-heading').outerHeight() || 0;
$('.root-panel-body').css('height', rootPanelHeight - rootPanelHeadingHeight);
}

function strcmp(a, b){
Expand Down

0 comments on commit f199634

Please sign in to comment.