Openlayers map goes blank when switch tabs - openlayers-3

I have an openlayers 3 map, which is using an openstreetmap basemap. Everything is working fine, but if I have other tabs open, and I switch to another tab for a minute, and they switch back to the openlayers tab, I see the map for a split second, and then the whole map turns white. If I click off the tab to another tab, and then go back to the openlayers map tab, the map reappears again. Has anyone else experienced this, or have any idea what might be going on? Thanks in advance.

Related

Script to Prevent Google Slides from Opening New Tab When Touched vs. Clicked

I created a digital Pop It in Google Slides with about 120 slides, which is Published to the Web from the File menu. Each slide has a transparent image overlaying it that is linked to Next Slide. When the user clicks with their mouse on the transparent image, it proceeds to the next slide, and works as it is expected to.
However, when the user has a touch screen, and then presses on the screen to advance it to the next slide, it opens up a new tab and stays on the same slide, and does not advance to the next slide.
Does anyone know of a script that can turn this off so that if a user is pressing on the screen to advance the slide, it will actually work? Or is this a bug?
Thanks for your help!
FYI: the slide may take a little while to load.
You can view the slide here.
I tested it out and apparently it might be a bug. I removed the transparent image with the link to the next slide and the issue is the same.
I recommend you to report it on:
https://issuetracker.google.com/issues/new?component=191598&template=824111
And describe the issue.
As a workaround, if you open the Google Slides app, it works as intended.

When showing WebBrowser in Tab it turns into Image

when showing WebBrowser in Tab on IOs the component turns into an image that is browser's screenshot. On Simulator is just fine. If I close the app on the device and come back - it becomes OK.
This is fixed now in git. Will be available in next server update next week.
https://github.com/codenameone/CodenameOne/commit/e17c39a6293125b4e136ed4b05fb5e20a8c3a82f
This post is a bit out of date by now but it might explain why that happens. If you move between the tabs the browser should be painted within the tab. So we turn it to an image and then turn it back.
The question is what happened that made it stay as an image?

jQuery Mobile app not not displaying elements correctly

SO...my app has a few issues, but I am DESPERATE to solve this one first. Any thoughts and suggestions are welcomed. Here is the app:
http://pocketfacilitator.com
Here's the issue - (NOTE, Firefox doesn't even allow this issue to fire, so maybe try Chrome or Safari, or a mobile browser):
From the home page, click on Portables > List All Portables. Now, click on any of the PLUS signs on the right (or two or three, doesn't matter). Now, check the "TODAY" page (in the very bottom nav bar). It will display the list of games you clicked on, but the way they are displayed is totally jacked. BUT...if you RELOAD the page (or just click the red CLEAR button), and repeat the process, it looks normal. What have I done wrong?
If you dare: in Firefox, it won't even let me add an activity -- clicking on the "+" button yield NO effect.
I appreciate any help. Cheers!
Try to call refresh() method on your listview after you dynamically add items
$(this).parent().appendTo('#todaylist');
$('#todaylist').listview('refresh');
See Updating lists
If you add items to a listview, you'll need to call the refresh()
method on it to update the styles and create any nested lists that are
added.

Cant get down state to work in browser in Firewoks CS5

can anybody help with this , I can get the 3 states to work in preview ie; up, over, down with the behaviour as onMouseOver Set Nav Bar Image.
It works in the browser if there are no links set as soon a i set a link then only up, over work not the down state , I have tried setting the links in dreamweaver but get the same result.
Is there any workaround for this this ?
Thanks
if anybody is interested , i have found out what to do
tick the box in the properties panel that says Show down state on load
this does not work if you have your nav menu set as part of the master template or as a shared layer.
So you need to copy the menu to each page and set the individual button on each page with the Show down state on load tick box.
Hope this makes sense ?
thanks

How to navigate BlackBerry BrowserField2 in OS5

I am using the new BrowserField2 in BlackBerry OS5 to display HTML content in my app. There are 3 options available for navigation through links in that content.
CURSOR navigation uses a block cursor and actually moves through the characters of the page. Not very useful for me.
POINTER navigation uses a mouse like pointer that you move around the screen and hover over elements. This could work but there is a bug however in that the browser field captures navigation and never lets go so this mode is effectively broken if you share a screen with any other managers. Once your focus enters the browser field you cannot move focus back out and into neighboring fields. RIM has acknowledged the bug but has no work around.
NONE which is for custom navigation but they offer no explanation as to how you would do this.
What I ideally want is to simply have trackpad movements move the focus through the links and highlight them. Then a click would activate the link. I assume I would select the NONE option above and implement my own focus navigation but I am not clear how this can be accomplished with the new APIs.
Is anyone familiar with the new browser2 component could give some guidance?
Thanks!
There's a workaroudn to getting back the focus out of the BrowserField using the NAVIGATION_POINTER.
I found it in this thread:
http://supportforums.blackberry.com/t5/Java-Development/BrowserField-2-Navigation-Mode/td-p/632172
"farahh" posted this:
I found out a hack..
with the navigation set to pointer mode, a click outside the browserfield manager invokes Manager.invokeAction(int). I used the getFieldWithFocus to verify which field has focus and then switch the focus to something else.
Cheers.
Nahuel
PD: i havent found out how to get the behaviour you want, i need that as well so if you got it working please let me know, its kinda urgent in my project =(
I actually reverted back to the older browser1 (OS4) component because the navigation problems in browserField2 (OS5) were a deal breaker for me. Luckily the OS4 browser does everything I need in terms of functionality and it has the exact navigation behavior I need and there are no focus problems mixing it with other views.

Resources