aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/journey_patterns
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/journey_patterns')
-rw-r--r--app/javascript/journey_patterns/components/JourneyPatterns.js4
1 files changed, 2 insertions, 2 deletions
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 {