# Wrong margin-top calculation on scroll-content with Ionic 3

**URL:** <https://forum.ionicframework.com/t/wrong-margin-top-calculation-on-scroll-content-with-ionic-3/111601>\
**Category:** ionic-v3\
**Created:** [November 9, 2017, 3:27pm UTC](https://forum.ionicframework.com/t/wrong-margin-top-calculation-on-scroll-content-with-ionic-3/111601 "2017-11-09T15:27:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiwi](https://avatars.discourse-cdn.com/v4/letter/x/58f4c7/32.png) [@Xiwi](https://forum.ionicframework.com/u/Xiwi)\
**Post date:** [November 9, 2017, 3:27pm UTC](https://forum.ionicframework.com/t/wrong-margin-top-calculation-on-scroll-content-with-ionic-3/111601/1 "2017-11-09T15:27:31Z")

</div>

This is a random issue on Ionic 3. I have no size defined for the header, just the font-size for which I’m using vmax (but I faced the same with px).

BAD (margin-top: 134):

 ![1](https://global.discourse-cdn.com/ionicframework/original/3X/1/1/11bfabb6d40991b2bc968034d564d1860009a9b1.jpg)

OK (margin-top: 80px):

 ![2](https://global.discourse-cdn.com/ionicframework/original/3X/5/e/5e812a615ee0233611ff112a0a6105a489fe69b7.jpg)

As you can see both headers are the same. I don’t really need scroll. If I can’t fix this I wouldn’t mind to make the content not scrollable. Is there any defined class/component for this?

---

<div class="post-metadata">

**Author:** ![sametacar](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@sametacar](https://forum.ionicframework.com/u/sametacar)\
**Post date:** [June 21, 2020, 4:32pm UTC](https://forum.ionicframework.com/t/wrong-margin-top-calculation-on-scroll-content-with-ionic-3/111601/2 "2020-06-21T16:32:05Z")

</div>

@Xiwi did you solve this problem?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 8:54pm UTC](https://forum.ionicframework.com/t/wrong-margin-top-calculation-on-scroll-content-with-ionic-3/111601/3 "2021-07-19T20:54:32Z")

</div>

Closed on July 19, 2021, 8:54pm UTC


