Fields in Android Do Not Show Last Line
Sannyasin Brahmanathaswami
brahma at hindu.org
Mon Mar 4 12:21:30 EST 2019
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
More information about the use-livecode
mailing list