diff options
| author | Alban Peignier | 2018-04-26 11:14:35 +0200 |
|---|---|---|
| committer | GitHub | 2018-04-26 11:14:35 +0200 |
| commit | b5d113b0e6bfc15775eca753a9395f3a961c1e5e (patch) | |
| tree | 015535b89a780c4e8fbff813a154ad6024a7f0d0 | |
| parent | 0becfb7afdc1e439059c1f82ef6860c1c52d7fd6 (diff) | |
| parent | 86ac76d4e930dfbeb2efcc1cefc7e1e2ade62724 (diff) | |
| download | chouette-core-b5d113b0e6bfc15775eca753a9395f3a961c1e5e.tar.bz2 | |
Merge pull request #529 from af83/6486-fix-bumpy-front
Fix bumpy front. Refs #6486
| -rw-r--r-- | app/javascript/journey_patterns/components/JourneyPatterns.js | 4 | ||||
| -rw-r--r-- | app/javascript/vehicle_journeys/components/VehicleJourneys.js | 4 |
2 files changed, 4 insertions, 4 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 { diff --git a/app/javascript/vehicle_journeys/components/VehicleJourneys.js b/app/javascript/vehicle_journeys/components/VehicleJourneys.js index 0bb00e1ea..31b632098 100644 --- a/app/javascript/vehicle_journeys/components/VehicleJourneys.js +++ b/app/javascript/vehicle_journeys/components/VehicleJourneys.js @@ -112,13 +112,13 @@ export default class VehicleJourneys 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 { |
