Fields in Android Do Not Show Last Line
Ralph DiMola
rdimola at evergreeninfo.net
Mon Mar 4 12:39:19 EST 2019
BR,
I always add 20px to item 4 the "contentRect". I did this a long time ago.
20 Is probably a kludge and could be calculated to a more precise value, but
it has worked for me since 2011. In your example:
("0,0," & (the formattedwidth of control pName) & "," & the formattedheight
of control pName + 20) into tRect
mobileControlSet pName, "contentRect" , tRect
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Sannyasin Brahmanathaswami via use-livecode
Sent: Monday, March 04, 2019 12:22 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Fields in Android Do Not Show Last Line
I have a field which shows quotes in an app.
400 pixels wide
320 pixels tall
Font is Helvetica Neue (which shows nicely on iOS and Android)
Font size is 24
Fixed line height = true
Text Height = 32
Margins: 48,0,37.0
On desktop:
scroll down.. that last line of the field shows completely On iOS
scroll down.. that last line of the field shows completely On
Android
scroll down.. that last line of the field will not show!
We use this to create a scroller on mobile
command CreateScroller pName -- scrolling fields
if not isMobile() then exit CreateScroller
deleteMobileControl pName -- delete any existing
put (the rect of control pName) into tRect
mobileControlCreate "scroller", pName
mobileControlSet pName, "rect", tRect
put ("0,0," & (the formattedwidth of control pName) & "," & the
formattedheight of control pName) into tRect
mobileControlSet pName, "contentRect" , tRect
mobileControlSet pName, "hScroll" , 0
mobileControlSet pName, "vScroll" , 0
mobileControlSet pName, "hIndicator" , false
if pName = "quote" then
mobileControlSet pName, "vIndicator", true
end if
mobileControlSet pName, "visible", true end CreateScroller
Why can't we scroll to show that last line of the field on Android?
BR
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list