native scroller cuts off parts of last line in a field
J. Landman Gay
jacque at hyperactivesw.com
Tue Apr 20 12:11:11 EDT 2021
There's a thread here on the list somewhere when I had the same problem. I
did need to add some pixels to the height of the scroller. I wonder if
formattedHeight is miscalculated on mobile.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 20, 2021 6:51:25 AM Brian Milby via use-livecode
<use-livecode at lists.runrev.com> wrote:
> I think that is just a bug. See here for workaround idea:
>
> https://github.com/Himalayan-Academy/Siva-Siva-App/blob/nightly/behaviors/behavior_mobileScroller.livecodescript
>
> Basic idea is to add 60 or so px to content region and then adjust a bit
> when not at the top. Requires adjustments in scrollerDidScroll handler.
>
> Thanks,
> Brian
>
> Sent from my iPhone
>
>> On Apr 20, 2021, at 7:26 AM, Klaus major-k via use-livecode
>> <use-livecode at lists.runrev.com> wrote:
>>
>> ?Hi all,
>>
>> see subject...
>>
>> I have a field, I grouped it and in the IDE I show the vscrollbar
>> of that group. I added two extra EMPTY lines at the end of that field
>> AFTER the last line, and in the IDE I can read the last line and see the bit
>> of white space below.
>>
>> Then I created a native scroller according to the LC lesseon and it works fine.
>> --------------------------------------------------------------
>> ommand scrollererstellen
>> put the rect of grp "scrollgroup" into tScrollerRect
>> put 0,0,(the formattedWidth of group "scrollgroup"),(the formattedHeight of
>> group "scrollgroup") into tContentRect
>> mobileControlCreate "scroller", "links"
>> mobileControlSet "links", "rect", tScrollerRect
>> mobileControlSet "links", "contentRect", tContentRect
>> mobileControlSet "links", "visible", true
>> mobileControlSet "links", "scrollingEnabled", true
>> mobileControlSet "links", "vIndicator", true
>> mobileControlSet "links", "vscroll", 0
>> end scrollererstellen
>>
>> on scrollerDidScroll hOffset, vOffset
>> set the vScroll of group "scrollgroup" to vOffset
>> end scrollerDidScroll
>> --------------------------------------------------------------
>> However the lower part of the last line is cut off in the native scroller and I
>> do not see the two empty lines!?
>> What am I missing?
>>
>> Thanks for any hint!
>>
>>
>> Best
>>
>> Klaus
>> --
>> Klaus Major
>> https://www.major-k.de
>> https://www.major-k.de/bass
>> klaus at major-k.de
>>
>>
>> _______________________________________________
>> 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
> _______________________________________________
> 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