Skip to content

Commit

Permalink
fix: remove unhelpful warning (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen authored Sep 9, 2020
1 parent e236a1d commit d6e27e9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/ItemGrid/PrintLayoutItemGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,10 @@ export class PrintLayoutItemGrid extends Component {

const pageHeight = 720
const gridElement = document.querySelector('.react-grid-layout')
// the last page break is before the last item(s) so
// maxHeight is one page beyond the last page break
const maxHeight = pageBreakBottom + pageHeight

if (maxHeight < lastItemBottom) {
// there is a problem - this should not happen
console.log(
'jj PROBLEM! items extend beyond page bottom',
maxHeight,
'<',
lastItemBottom
)
}
if (gridElement) {
gridElement.style.height = `${maxHeight}px`
}
Expand Down

0 comments on commit d6e27e9

Please sign in to comment.