I am trying to use native scrolling like this:
angular.module('MyApp').config(function ($translateProvider,$ionicConfigProvider) {
$translateProvider.preferredLanguage('en');
$translateProvider.useStaticFilesLoader({
prefix: 'languages/',
suffix: '.json'
});
if(!ionic.Platform.isIOS())$ionicConfigProvider.scrolling.jsScrolling(false);
})
the issue that my scrolling stop working at all very similar to: code pen
my template:
<div class="list">
<a ng-repeat="item in items" class="item card"
href="#/tab/details/{{item.queId}}">
<div class="row">....
thanks For helping!
after looking on it looks that the issue happens only on chrome....
Native scrolling only works on Android platforms.
You can read more about it in one of the recent blog posts here and in the forum here.
The syntax you're using is ok:
if (!ionic.Platform.isIOS()) {
$ionicConfigProvider.scrolling.jsScrolling(false);
}
but you can only test it on an android device.
Your codepen scrolls fine without this line:
if(!ionic.Platform.isIOS())$ionicConfigProvider.scrolling.jsScrolling(false);
Why are you disabling the scroll in non iOS platforms with this code?
Related
On my website built using Joomla 4, the following works fine (it displays the whatsapp icon):
<span class="fa fa-whatsapp"> </span>
But this doesn't (trying to display the telegram icon):
<span class="fa fa-telegram"> </span>
Although the same code for displaying telegram icon works on an older site built using Joomla 3.
I observed that, on old site, the following code is present in font-awesome.css and font-awesome.min.css. So I added the same code in the new site as well but it still doesn't work (just displays a box):
.fa-telegram:before {
content: "\f2c6";
}
Any idea why is this happening?
I've had to take over a nativescript project from a former co-worker. We are trying to get the code updated to work properly on ios 13, but I can't figure out why previously working icons in a Button now just render as a '?'. Here is what the code looks like:
<FlexboxLayout class="toolbar">
<Button class="fa-light toolbar-button" (tap)="onNotesTap()" text="Hi"></Button>
<Button class="fa-light toolbar-button" (tap)="onAddTaskTap()" text=""></Button>
<Button class="fa-light toolbar-button" (tap)="onDirectionsTap()" text=""></Button>
<Button class="fa-light toolbar-button" [ngClass]="phoneCallEnabled ? '' : 'disabled'" (tap)="onPhoneTap()" text="" [isEnabled]="phoneCallEnabled"></Button>
</FlexboxLayout>
Does anyone have any recommendations or things that I can look at to figure out why this is no longer working? I updated tns-core-modules to the latest version, which fixed RadListView not rendering rows, but now I have this issue. Thanks!
UPDATE
So, it has SOMETHING to do with the app.css file not being read properly. I have looked all over the place and in the documentation, but I think that my app.css is set up properly. The reason I think this is that I copied the classes from the app.css to the css for the component, and it shows the images. Any ideas?
UPDATE2
Getting this error in my logs from tns-core-modules/trace/trace.js:174:0.
Error: Could not load CSS from app.css: TypeError: Expected module identifier to be a string.
Click any of the CodePen links on (for example) this page: https://vuetifyjs.com/en/components/navigation-drawers
Notice the flash of unstyled content. How do you eliminate this?
I see it in my project when I do a hard refresh. I tried v-cloak but of course that did not work.
You need to first hide the app
<div id="app" hidden>...</div>
Then use mounted.nextTick to unhide the app once it is ready
new Vue({
el:'#app',
mounted:function(){this.$nextTick(function(){
this.$el.removeAttribute('hidden')
})}
});
i'm trying to use Font Awesome but instead of any icons it just displays any asian signs. I downloaded font awsome to by webserver for that. I tried this in 3 different browsers (firefox, opera and chromium) but it is always the same.
A testpage can be seen here: http://2weitweitweg.de/test.html
And here is a screenshot of it: http://postimg.org/image/9yh5p0p97/
Does it show the signs in your browser? Is the problem browser- or server-related? How can i fix it?
bye
I had this problem and it was because I was using old html with a new fontawesome version.
I fixed it by changing:
<i class="fa-bitbucket"></i>
to:
<i class="fa fa-bitbucket"></i>
I.e. I just had to add the default fa class to the element.
The latest version uses the fa prefix but for you, I guess it might be icon instead.
Hope this helps someone out at some stage :-)
Most likely the actual font files are not being found. If you look in the font awesome CSS file you will probably see something like:
#font-face {
font-family: 'FontAwesome';
src: url('../font/fontawesome-webfont.eot');
src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
[...etc]
This expects to find the font files in a folder called font at the same level that the CSS file is in. For example:
myproject / css
/ font-awesome.css
[...etc]
/ font
/ fontawesome-webfont.eot
[...etc]
If the files are in the correct place it is possible that they are not being loaded because of some problem with permissions or even that you have are using a strange browser that does not properly support #font-face. Of course you can rule out the latter by browsing to the font awesome examples page to see if it displays the icons properly.
Hope I'm not too late, something on your server isn't configured properly, solution is to allow *.woff and *.tff to be requested like static resources just like you do with *.css and *.js, this is done differently depending on platform:
What I did to make it work:
Replaced your stylesheet with (since we can't get to resources):
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
And replaced your old icon-* classes, for example:
<i class="fa-umbrella fa text-error"></i>
And now it works:
If you using 4.0 or later, they've changed the icon classes to fa classes
So your code should say
<i class="fa fa-camera-retro fa-large"></i>
instead of
<i class="icon icon-camera-retro icon-large"></i>
You can find icon, specific code examples by visiting http://fontawesome.io/icons/ and clicking/tapping the icon you need.
I had this same issue when upgrading from 3.2 to 4.0.3
Run the below command
npx react-native link react-native-vector-icons
Using fontawesone 5.15.1 I had to do this to get the Linux icon to show up:
<i class="fab fa-linux icon"></i>
IMPORTANT: using "fab" instead of "fa" as Linux is considered a "brand".
Using jQuery add role alert in #div1, read #div2 content even if it is hidden for JAWS.
<div id="div1">
some content
<div id="div2" aria-hidden="true">
some content 2 for div
</div>
</div>
Support for the aria-hidden attribute was added to JAWS in their 13.0.718 update (February 2012). See the full change log below:
http://www.freedomscientific.com/downloads/jaws/JAWS13-previous-enhancements.asp.
JAWS now recognizes the aria-hidden attribute so that text that is
supposed to be hidden is no longer announced.
It seems to work for me, but I've noticed that tabbable content wrapped in a "hidden" container can still be navigated to and read by JAWS.
Currently, JAWS does not support aria-hidden state in both Internet Explorer and Firefox.
You can use role="presentation" though it is not recommended.
See also:
Official JAWS aria support list
Donald Evans's blog