# Shrinking Header Issue!

**URL:** <https://forum.ionicframework.com/t/shrinking-header-issue/2065>\
**Category:** ionic-v1\
**Created:** [March 20, 2014, 5:01pm UTC](https://forum.ionicframework.com/t/shrinking-header-issue/2065 "2014-03-20T17:01:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![domenik](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@domenik](https://forum.ionicframework.com/u/domenik)\
**Post date:** [March 20, 2014, 5:01pm UTC](https://forum.ionicframework.com/t/shrinking-header-issue/2065/1 "2014-03-20T17:01:40Z")

</div>

I just tried to add this epic new feature with the shrinking header from codepen here:

https://codepen.io/ionic/embed/preview/hIzFp?height=300&slug-hash=hIzFp&default-tabs=html,result&host=https://codepen.io

It works, added it to the starter template. The header-bar shrinks away but the scrollable content doesn’t move up! See screenshot here:

![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/325/a0d8b6e652e81f8f.png)  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/324/26470809885c32e5.png)

I need that list content to move up too. Any ideas?

---

<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:** [March 20, 2014, 5:13pm UTC](https://forum.ionicframework.com/t/shrinking-header-issue/2065/2 "2014-03-20T17:13:02Z")

</div>

Something to notice is this div right here

```
 <div style="height: 64px;"></div>

```

This is basically an offset that pushes the content below the header to create that illusion of `has-header="true"`

---

<div class="post-metadata">

**Author:** ![domenik](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@domenik](https://forum.ionicframework.com/u/domenik)\
**Post date:** [March 20, 2014, 5:21pm UTC](https://forum.ionicframework.com/t/shrinking-header-issue/2065/3 "2014-03-20T17:21:28Z")

</div>

Ah that’s it. It worked. I removed has-header and added this div with the style.

Doesn’t work quiet good in combination with the pull to refriesh feature because you have to pull 1000miles down before pull to refresh icons is shown ☹

Any idea for that issue too?

---

<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:** [March 20, 2014, 5:32pm UTC](https://forum.ionicframework.com/t/shrinking-header-issue/2065/4 "2014-03-20T17:32:18Z")

</div>

I’ve never played with the refresh features so I’m not an authority on that . I know there are a lot of things in change as the guys reach 1.0 so something could be in there.

The only thing that I can think of is that include the has-header attribute and as the header shrinks, reduce the css top value on the content area with it. Let me try to work this out and I’ll get back to you

---

<div class="post-metadata">

**Author:** ![rdtran](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@rdtran](https://forum.ionicframework.com/u/rdtran)\
**Post date:** [November 26, 2014, 8:20pm UTC](https://forum.ionicframework.com/t/shrinking-header-issue/2065/5 "2014-11-26T20:20:43Z")

</div>

This was helpful too. [https://github.com/driftyco/ionic-ion-header-shrink](https://github.com/driftyco/ionic-ion-header-shrink)
