Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#18281 closed defect (wontfix)

In some conditions, dojox/mobile/TextBox doesn't trigger screen to move upward in iOS8

Reported by: billylo Owned by: Adrian Vasiliu
Priority: undecided Milestone: tbd
Component: DojoX Mobile Version: 1.10.1
Keywords: Cc:
Blocked By: Blocking:

Description

When tapping on dojox.mobile.TextBox? control which is in lower part of the screen in iOS8 device, the dojox.mobile.TextBox? doesn't trigger the screen to scroll up (as what iOS7 does) to allow users to view the typing inside the dojox.mobile.TextBox? control. Therefore, the whole TextBox? input was totally blocked by the soft keyboard in the lower part of the iOS8 device.

The expect behaviour (it works in iOS5,6,7) should be the screen scroll up automatically to the point that the tapped dojox.mobile.TextBox? can be seen as it being above the soft keyboard.

All the other input controls have the same issue in iOS8 that they don't trigger the scroll up action of the screen any more.

Attachments (2)

test_FormControls-ScrollableView.html (8.3 KB) - added by Adrian Vasiliu 5 years ago.
Text widgets inside ScrollableView?
test_HTML-inputs-no-dojo.html (1.5 KB) - added by Adrian Vasiliu 5 years ago.
Test case in pure HTML (without Dojo)

Download all attachments as: .zip

Change History (14)

comment:1 Changed 5 years ago by Adrian Vasiliu

  • If you are not yet using the latest iOS 8 update (8.0.2), can you try updating?
  • If you experience that on a simulator, does it work better on a real device?
  • If your TextBox? is used inside a dojox/mobile/View, can you try replacing View by ScrollableView?? Does it work better?
  • Are you using the typical viewport meta, including width=deviceWidth, as it can be seen in the test files from dojox/mobile/tests?

comment:2 Changed 5 years ago by Adrian Vasiliu

Owner: set to Adrian Vasiliu
Status: newassigned

comment:3 Changed 5 years ago by billylo

Hi Adrian,

Thank you very much for your quick reply!

I have upgraded my iPad to iOS 8.0.2 . But the screen is still not moving upward when I tap on the TextBox? fields in the bottom part of the screen. The input TextBox? field tapping at is still blocking by the soft keyboard.

In fact, I finally found it out that it is not the dojox.mobile.TextBox? issue. It is the iOS8 issue. I tried the normal <input type ="text"> html control in iOS8, it has the same issue. It is iOS8 that is no longer doing the auto scrolling for input field for HTML in the lower part of screen. I'm not sure whether it is a bug or they purposely to do it. Anyway, thank you so much for your help!

comment:4 Changed 5 years ago by Adrian Vasiliu

Okay, thanks for the update. Can you please try my suggestion about using the text widgets inside a dojox/mobile/ScrollableView? For your convenience, I attach a modified version of dojox/mobile/tests/test_FormControls.html implementing this suggestion. (It uses Dojo 1.10.1 from CDN.)

Changed 5 years ago by Adrian Vasiliu

Text widgets inside ScrollableView?

comment:5 Changed 5 years ago by Adrian Vasiliu

billylo, did you have the time to test my suggestion?

I have tested again https://bugs.dojotoolkit.org/attachment/ticket/18281/test_FormControls-ScrollableView.html (still using Dojo 1.10.1 from CDN). In my testing, touching the text widgets did trigger the scroll as expected (such that the input is visible while typing) on the following devices:

  • iPad 4 iOS 8.1
  • iPhone 6 iOS 8.1
  • iPhone 5S iOS 8.1
  • iPhone 6+ iOS 8.0.2
  • iPhone 5S iOS 8.0.2

Does it go the same for you?

Last edited 5 years ago by Adrian Vasiliu (previous) (diff)

comment:7 Changed 5 years ago by red3

I tested the three files posted on iPhone 6+ 16Gb with iOS 8.1: The fields do scroll into view when selected, if you stay in the same orientation you started at. If you rotate the device the field is not always displayed in view, and may be covered by either the keyboard or the browser toolbar. If you start typing, the field is still hidden from view. I would at least expect it to some into view as I type, if changing orientation resulted in the field being lost from view.

Changed 5 years ago by Adrian Vasiliu

Test case in pure HTML (without Dojo)

comment:8 Changed 5 years ago by Adrian Vasiliu

Okay, so part of the issue does go away when using ScrollableView?. For the remaining part, I reproduce it on iOS 8.1 and 8.0.2 on various iPhone (6, 6+, 5S) using pure HTML (without any Dojo code) - see https://bugs.dojotoolkit.org/attachment/ticket/18281/test_HTML-inputs-no-dojo.html . This worked in previous iOS versions, and looks as an iOS 8 bug. May go away in a future iOS 8 update...

comment:9 Changed 5 years ago by Adrian Vasiliu

Summary: dojox.mobile.TextBox doesn't trigger screen to move upward in iOS8In some conditions, dojox/mobile/TextBox doesn't trigger screen to move upward in iOS8

comment:10 Changed 5 years ago by Adrian Vasiliu

billylo, if it goes for you the same as red3 said in https://bugs.dojotoolkit.org/ticket/18281#comment:7, please edit the description to state more accurately the conditions when the issue hurts.

comment:11 Changed 5 years ago by Adrian Vasiliu

Resolution: wontfix
Status: assignedclosed

Given that it appears strongly related with a Safari / iOS 8 issue, we decided to close this ticket as "won't fix" (say, third-party bug).

comment:12 Changed 5 years ago by Adrian Vasiliu

Also, FYI, typing into the input field does trigger scroll such that the input is visible, including after rotating the device, if you embed the webapp in a Cordova container. Tested with Cordova 3.5 on both iOS 8.1.1 and iOS 8.2 beta.

Note: See TracTickets for help on using tickets.