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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to