The only CSS i’m using is in the page-title span and it’s only font related. The strangest part is that in the ionic lab everything seems to work fine with no padding but when i run the app in my iPhone the padding appears:
(I have also closed the span tag now, thanks for pointing that out)
EDIT: One thing i forgot to mention this is happening in all the pages of the app. Also, if i view the app with IonicView everything is fine (no padding).
your device is VIVO am I right? so basically it is android so an exta height will be added in navbar for android material design purposes. The one that your taking look at is IOS Design which will switch the design for native look… maybe you don’t check the Android platform in Ionic Lab (ionic serve)…
first of all find which css of padding apply by default in your navbar using Inspect Element.because sometime it will automatically add few tag in html if you notice.after that remove those css .
Problem is that in the browser (ionic serve and lab) everything is fine. The padding only appears in the app when installed on the device, where i can’t use Inspect Element.
@felipegrin
which iPhone you used for testing ?
add custom device in chrome browser.
use same configuration of your phone to test app in chrome in mobile view.
after that see what happens.if issue remain same then you can manage to find the problem by inspect element.
Not exactly. What i did was to start a new project with “ionic start”, then install all the plugins I was using and copy & paste all my code again to this new project. For some strange reason, this new project didn’t have this problem, even though it had the exact same plugins and code than the other one.