Im building android app with ionic framework. I have a weird problem with my navbar.
I aligned my title to left(like all android app) using align-title="left"
But sometimes the in navbar , the title and goback icon are overlapping.
I made a codepen for this problem HERE
You have to do these steps to see the problem
In homepage click Scientific Facts
Then click about in the tab
Again click home in tabs
There is also a problem with the transition when aligned right.
Any help appreciated
There has been a bug related to this. Can you try the nightly build and see if that works for you? I've seen issues related to the back button being shown/hidden and proper padding, but it should have been resolved.
You can include the CSS and JavaScript from these urls to load nightly build.
http://code.ionicframework.com/nightly/css/ionic.css
http://code.ionicframework.com/nightly/js/ionic.bundle.js
Navbar issue: https://github.com/driftyco/ionic/issues/1858
After almost 2 years, ion-nav-bar is buggy as Harlem shake.
Seriously, going back to simple
<div class="bar bar-header">
Related
I've done almost everything but seems like I cant get rid of the white space between header and status bar as seen in the image
I am using Intel XDK version 3987 using Cordova plugin.
Any help to eliminate this error will be highly appreciated!
This is my source code:
pastebin.com/fPWJmiD8
To me it seems that your header-elements (data-role="header") have got a border-width of 1px that causes the whole content to move downwards.
Have you already tried to remove the border from each header?
CSS:
.ui-header{
border: none !important;
}
Hope this helps.
After several days of headbanging, trials and errors and detective work, I was able to find the real culprit.
The problem was caused because jQuery Mobile framework automatically on the runtime added the following classes to the header div having data-role="header":
class="ui-header ui-bar-inherit"
Those classes created an unwanted margin between the status bar and the header.
However, this problem was solved by removing those classes using jQuery during the runtime execution of the application.
I got a weird problem with bootstrap 3 and the glyphicons!
The problem appears on my android mobile phone with Chrome (latest).
Problem description: If the font-face-statement exists in the bootstrap.css to load the glyphicon font file(s), the layout of the page gets a little bit broken.
On a windows phone, it's fine. It's fine # Firefox on a Desktop machine too and also in Chrome Desktop.
If I load the page the first time, the layout is OK! If i reload the page or change the page: The weird problem appears and keep! (-> Cache?)
E.g., screenshots from Android Mobile Chrome (latest):
Button group vertical with glypihcons. Icons are moved to the right. (Padding problem?)
Buttons with text # footer. (Padding problem at right side?)
Label for an input field. (It just breaks)
A self styled Checkbox + Label after it. (Unwanted new line break after the checkbox because the parent container is a lil' bit too small (width)...)
I don't know whats going on! If I remove the font-family for the Glyphicon Icons from bootstrap.css, everything is and keeps okay (insteat the missing glyphicon icons off course). If I let the font-face statement in the file, the problem occurs # android mobile phone.
Does someone already have had this problemand how can I fix this and what is the problem?
Fixed it for my self. It don't know what Chrome did, but clearing all the Chrome App Cache worked for me. The Problem was App related.
I have updated my Chrome browser to last version and I have the following problem:
When I select an option of a select menu it does not appear selected, I repeat the process of the selection and then it is selected OK. If I try to select other option it happens the same, first time bad, second time OK. It is happening since I have update to version 50 of Chrome, with previous version 49 it worked OK.
I am using a Huawei Y5 with Android 5.1.1, it happens the same with a Nexus with Android 6.
The version of jquery mobile that I have is 1.4.5
It seems only happens with Chrome version 50 in Android, in desktop works fine. In the browser that Huawei has, works OK.
To test this problem is easy, just go to the demo of select menu of jquery mobile:
http://demos.jquerymobile.com/1.4.5/selectmenu/
One important thing, in previous versions of jquery mobile works fine, examples:
http://demos.jquerymobile.com/1.3.2/widgets/selects/
Is there any way to resolve this problem? Any help would be appreciated.
Thanks in advance,
FĂ©lix.
I have to question the logic behind JQuery Mobile hiding the toolbars on select element focus by default. The native browser select elements overlay the page in their various special ways, and even the non-native select popup (which you get when specify the data attribute data-native-menu="false" in html or nativeMenu: false in the selectmenu options) is absolutely positioned as a dialog. This means that the toolbars really do not intrude on the real-estate given to the selectmenu options as they'll always overlay everything including the toolbars. To me, this makes the code from line 12664 - 12692 commented as: this hides the toolbars on a keyboard pop to give more screen room rather unnecessary for select elements.
Workaround/solution: thankfully jQuery-Mobile does nicely allow you to override this setting in your header/footer with the data-attribute data-hide-during-focus - simply set this to:
data-hide-during-focus="input, textarea"
and it won't try to hide the toolbars anymore when a select element gets focus.
i.e. simply change your header from this:
<div data-role="header" data-position="fixed" data-tap-toggle="false">
Header
</div><!-- /header -->
to:
<div data-role="header" data-position="fixed" data-tap-toggle="false" data-hide-during-focus="input, textarea">
Header
</div><!-- /header -->
... and the same goes for the footer.
Im using Ratchet Framework for andriod app development.
I have some scrolling problems in some android phones and also in bluestack.
when scrolled, a toomany blank spaces occurs and it affects the smooth scrolling. also affects the forms in the page. attached the image related
scrolling on some other devices is good , No extra space.
1) make sure you are using the meta tags provided by ratchet.
2) make sure you are inserting the bar-tab navigation at the top right after the body
From the ratchet getting started guide:
1. Fixed bars come first
All fixed bars (.bar) should always be the first thing in the of the page. This is really important!
2. Everything else goes in .content
Anything that's not a .bar should be put in a div with the class .content. Put this div after the bars in the tag. The .content div is what actually scrolls in a Ratchet prototype.
3. Don't forget your meta tags
They're included in the template.html page included in the download, but make sure they stay in the page. They are important to Ratchet working just right.
If that doesn't help post some code and let us take a look at it
Please help me.. I don't know what to do anymore..
I'm working on android project now, I'm using cordova 3.5.
I made a swipeable menu, when I swipe to the left, the menu slide in from right, and when I swipe to right, the menu slide out to right.
The issue is I made this menu position fixed on css, It is going right when I first swipe the menu in and out.. But when I scroll the page.. The menu seems to go down and not fixed anymore.. how can I fixed it? I have tried to fix it for days.. but It still can't do right.. The strange things is, I'm using android 4.1 and it is not working well.. but when I try on android 4.4 KitKat It works well, even when I scroll the page down, the menu's not running away.. how can I make it works well on android 4.1 too? Thank you for your help..