scrollComponentToVisible not working in codenameone on android, with keyboard open - codenameone

On Android, when using scrollComponentToVisible and the keyboard is open, the component is not scrolled to the actual visible area, but under the keyboard.

The problem was solved by wrapping the code in a "callSerially" statement. I also changed the direct scroll call to a "requestFocus" scroll coupled with a "startAsyncEditing".

Related

Capture.captureAudio() within a modal dialog on Android 8+ does not return until dispose of dialog

I instantiate a modal dialog and have a button that executes Capture.captureAudio()
On Android 8+ running on Samsung TAB S5e and Galaxy Tab A8 devices,
Tapping the button opens the recording dialog as expected, however when tap "Save" we don't get the String that Capture.captureAudio() returns until I dispose the current dialog.
Then the Capture.captureAudio() results are returned to me.
Works correctly on IOS and PC.
My Dialog is executed on the EDT, the Capture.captureAudio() is executed from a lambda expression and on a separate EDT
Thoughts?
Regards
Try showing the Dialog as modless using the showModless() method. Alternatively try using an InteractionDialog as discussed here.
We generally recommend avoiding Dialog for any complex UI especially one that might use the invokeAndBlock semantics. Nesting those can lead to unexpected side effects as you can see in this case. This only happens on iOS since the iOS implementation uses invokeAndBlock() internally

CN1: iOS: Showing ToastBar when virtual keyboard is visible

On iOS (ipad pro) I cannot see the ToastBar showing messages, when the virtual keyboard is visible.
However on Android devices the ToastBar is visible in the same szenario.
Is there way to work around this or do I have to use modal dialogs?
I think I see a problem related to that, it seems we don't handle the special case of iOS VKB's correctly.
I made a fix for this which should be there for the coming update of Codename One this weekend.

ionic 2 <ion-footer> not scrolling when keyboard is open in ios

i have one issue in ionic2(IOS). when my keyboard is open then <ion-footer> not scroll to up in ios only. i'm used Keyboard.disableScroll(true); for disable scroll. but if i remove it then work good. any solution without remove Keyboard.disableScroll(true); scroll <ion-footer>.??enter image description here

Popup textbox on website on touchscreen monitor

i want a textbox to popup whenever i use my touchscreen monitor to click on a textbox on a specific website. I would prefer not to interfere with the code of the website. Is there another way i can do this? Maybe writing it as a plugin for the browser.
found a google chrome extension, Virtual Keyboard Interface

How to force IE7 toolbars to always show

I have the developer toolbar for IE7, which is great when I want to inspect the page layout in a fashion similar to the functionality of firebug for firefox.
However I am working with a web site that opens a new window with the toolbars disabled, and I cannot access my dev toolbar button! Is there a way to force IE7 to always show the toolbar?
I don't believe you can.
You can recover the navigation toolbar (back, forward, address bar, search box) in a chromeless window (one opened without navigation toolbar, menus, other toolbars) by hitting F11, then F11 again, but that still doesn't give you access to the IE Developer Toolbar.
What will sometimes work is to hit CTRL+N while the new, chromeless window has focus. Doing that will open a new chromed (toolbars, menus, etc) to the same URL as the chromeless window. The trick won't work very well if the chromeless window URL is the result of a POST, or does a GET that modifies state in some way on the server.
I imagine that this happens because the pop-up window is opened using a javascript window.open() call specifying not to have the toolbars on the new window?
One possibility is opening the page source, finding the javascript call that opens the window, and pasting it into the address bar, modifying it to not disable toolbars.
For example, if the call currently looks like:
window.open(url, "newWindow", "toolbar=no,width=500,...");
Edit the address bar to read something like:
javascript:window.open(url, "newWindow", "toolbar=yes,width=500,...");
When you push enter on that, it should pop up the window just the same, but with toolbars.
IE8 has the dev toolbar built-in, so you can always access it via F12. Consider upgrading?

Resources