The margin-top style in scroll-content is removed

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

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

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

see:

1 Like

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.

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;
}

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