From 22430fd5f3356986afa784956d89b030646497d1 Mon Sep 17 00:00:00 2001 From: Zog Date: Thu, 26 Apr 2018 11:07:00 +0200 Subject: Refs #6486; Fix bumpy front --- app/javascript/journey_patterns/components/JourneyPatterns.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/javascript/journey_patterns') diff --git a/app/javascript/journey_patterns/components/JourneyPatterns.js b/app/javascript/journey_patterns/components/JourneyPatterns.js index 91c783189..a16f2a661 100644 --- a/app/javascript/journey_patterns/components/JourneyPatterns.js +++ b/app/javascript/journey_patterns/components/JourneyPatterns.js @@ -25,13 +25,13 @@ export default class JourneyPatterns extends Component { var refCol = [] $(this).find('.t2e-head').children('div').each(function() { - var h = $(this).outerHeight(); + var h = this.getBoundingClientRect().height; refH.push(h) }); var i = 0 $(this).find('.t2e-item').children('div').each(function() { - var h = $(this).outerHeight(); + var h = this.getBoundingClientRect().height; if(refCol.length < refH.length){ refCol.push(h) } else { -- cgit v1.2.3