0

Textbox on mobile not scrolling

asked 2014-03-21 17:28:49 +0800

Bobzk gravatar image Bobzk
444 1 8

If we try the following code (replacing the value with some really long data) on a desktop browser, then both textboxes have a scroll bar. All is OK.

But if we run it on a Galaxy s3 default browser, then the left textbox is not scrollable unless you "click" in it and bring up the editing keyboard. The right textbox is scrollable (and of course is correctly not-editable). So why is a readonly version scrollable? Why only when editing is the non-readonly version scrollable.

Looked at CSS but could not identify any significant difference between the two boxes.

<zk>
<textbox id="text1" value="some long data here" multiline="True" vflex="1" hflex="1"/>
<textbox id="text2" value="some long data here" multiline="True" vflex="1" hflex="1" readonly="True"/>
</zk>
delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2014-03-24 08:55:06 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2014-03-24 08:55:43 +0800

It seems that it is a android native browser bug. I test two textarea DOM elements on jsfiddle with android native browser, and both textarea can't scroll.

Here is the test link: textarea test

link publish delete flag offensive edit
0

answered 2014-03-24 12:02:36 +0800

Bobzk gravatar image Bobzk
444 1 8

Thanks vincentjian,

Just tried using Chrome and Firefox and yes they work. So looks very much like it is default browser problem.

One small point, you missed the "readonly="true" on second textbox.

Now I need to find a workaround.

link publish delete flag offensive edit
0

answered 2014-03-24 12:05:25 +0800

Bobzk gravatar image Bobzk
444 1 8

Yes, just tried it on Chrome and Firefox and they work OK, so looks as if you are right and it is the default Galaxy S3 browser problem.

One small point, you missed readonly="true" from your test, but it is not important.

Now I need to find a workaround.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-03-21 17:28:49 +0800

Seen: 13 times

Last updated: Mar 24 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More