The margin-top style in scroll-content is removed


#1

When create a custom component ion-navbar, the margin-top style in scroll-content is removed.


#2
ion-page > ion-content > scroll-content {
	margin-top: 56px !important;
}

#3

margin top is created in runtime. if you need to resize it use the resize method of content.

see:


#4

I put resize in the constructor of custom component and did not work. Then I put the resize in the page constructor, that uses the custom component and did not work too. I had to use custom style, shown in the top.


#5

What did you do to fix it? I cannot find any solution including the settings of

ion-page > ion-content > scroll-content {
margin-top: 56px !important;
}

ion-page > ion-content > fixed-content {
margin-top: 56px !important;
}


#6

I have the same issue.
Did you find a solution for it?