Field object bug on Android?

2013-09-05 Thread Terry Judd
I'm running into what seems like a bug on Android. I have a bunch of formatted 
text that I'm displaying in an LC field on Android. The field's height is set 
to its formattedHeight in a locked group (it's the only control) and is 
scrolled using a native scroller control.

It all works well until I throw a fairly big chunk of text at it (e.g. enough 
to give formattedHeight of greater than 4). Setting the htmlText of the 
field seems to work OK but once I set the height of the field to its 
formattedHeight value the app locks up. It appears to be an Android only 
problem because the same field displays fine at its full height on an iOS 
device.

Has anyone else seen this?

Terry...

Dr Terry Judd
Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry  Health Sciences
The University of Melbourne




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Field object bug on Android?

2013-09-05 Thread Mark Schonewille

Hi Terry,

I would never set the height of a field to such a high number. Not only 
fields, but groups too cause problems if they get that big. Similar 
problems occur on all platforms, including Windows and OSX operating 
systems.


A good alternative is to set the field to a reasonable size and increase 
and decrease the scroll of the field, instead of setting it to a fixed 
number, i.e.


set the scroll of fld x to the scroll of fld x + 10 // (or - 10)

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com


Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/

On 9/5/2013 09:16, Terry Judd wrote:

I'm running into what seems like a bug on Android. I have a bunch of formatted 
text that I'm displaying in an LC field on Android. The field's height is set 
to its formattedHeight in a locked group (it's the only control) and is 
scrolled using a native scroller control.

It all works well until I throw a fairly big chunk of text at it (e.g. enough 
to give formattedHeight of greater than 4). Setting the htmlText of the 
field seems to work OK but once I set the height of the field to its 
formattedHeight value the app locks up. It appears to be an Android only 
problem because the same field displays fine at its full height on an iOS 
device.

Has anyone else seen this?

Terry...

Dr Terry Judd
Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry  Health Sciences
The University of Melbourne



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode