Re: native scroller cuts off parts of last line in a field

2021-04-21 Thread Klaus major-k via use-livecode
Hi andrew,

> Am 21.04.2021 um 20:10 schrieb Andrew at MidWest Coast Media via use-livecode 
> :
> 
> Sorry to chime in late, but do you have the fullscreenMode of the stack set?

yes, sure! :-D

> This sounds like a problem that I noticed @ 
> https://quality.livecode.com/show_bug.cgi?id=21456

Thank you, that is exactly what I experienced, I added a comment.
Hopefully this serious showstopper will get fixed soon!

> —Andrew Bell
>> 
>> Date: Tue, 20 Apr 2021 18:43:51 +0200
>> 
>> Hi all,
>> FYI, I created a report:
>> 

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: native scroller cuts off parts of last line in a field

2021-04-21 Thread Andrew at MidWest Coast Media via use-livecode
Sorry to chime in late, but do you have the fullscreenMode of the stack set? 
This sounds like a problem that I noticed @ 
https://quality.livecode.com/show_bug.cgi?id=21456

—Andrew Bell

> 
> Date: Tue, 20 Apr 2021 18:43:51 +0200
> From: Klaus major-k 
> Subject: Re: native scroller cuts off parts of last line in a field
> Message-ID: <518e9b4c-bbfa-4067-aebe-fd15a7320...@major-k.de>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi all,
> 
> FYI, I created a report:
> <https://quality.livecode.com/show_bug.cgi?id=23177>
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 

___
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: native scroller cuts off parts of last line in a field

2021-04-21 Thread Klaus major-k via use-livecode



> Am 20.04.2021 um 18:43 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
> FYI, I created a report:
> 

since this is a basic and VERY important feature, please add a comment.
Especially if this is also the case on iOS, thanks!


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: native scroller cuts off parts of last line in a field

2021-04-20 Thread Klaus major-k via use-livecode
Hi all,

FYI, I created a report:



Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: native scroller cuts off parts of last line in a field

2021-04-20 Thread J. Landman Gay via use-livecode
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 | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 20, 2021 6:51:25 AM Brian Milby via use-livecode 
 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 
 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
kl...@major-k.de


___
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

___
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





___
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: native scroller cuts off parts of last line in a field

2021-04-20 Thread e.beugelaar--- via use-livecode
I am still wondering why layout issues anno 2021 has to be programmed manually 
for all devices. It is nonsense and don't make sense.
I started programming with Clipper 5.x in text base environments and even in 
that period we had ClipDAS, i was co-writer of it, to draw virtual screens.
Is it really so hard to add a general page designer to deal with positioning 
objects anno 2021! I dont want to spent my time on this stupid rect issues but 
instead focus on the business logic etc. Jesus.

Met vriendelijke groet,

Erik Beugelaar



From: use-livecode  on behalf of Klaus 
major-k via use-livecode 
Sent: Tuesday, April 20, 2021 1:56:37 PM
To: How to use LiveCode 
Cc: Klaus major-k 
Subject: Re: native scroller cuts off parts of last line in a field

Hi Brian,

> Am 20.04.2021 um 13:48 schrieb Brian Milby via use-livecode 
> :
>
> I think that is just a bug.

wonderful! :-(

> 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.

I even added a line of WHITE text (field has white background) at the end, but 
obviously LC does not see this!?
Will try the workaround thank you!

> Thanks,

no, I thank YOU! 8-)

> Brian

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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
___
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: native scroller cuts off parts of last line in a field

2021-04-20 Thread Klaus major-k via use-livecode
Hi Brian,

> Am 20.04.2021 um 13:48 schrieb Brian Milby via use-livecode 
> :
> 
> I think that is just a bug.  

wonderful! :-(

> 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.

I even added a line of WHITE text (field has white background) at the end, but 
obviously LC does not see this!?
Will try the workaround thank you!

> Thanks,

no, I thank YOU! 8-)

> Brian

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: native scroller cuts off parts of last line in a field

2021-04-20 Thread Brian Milby via use-livecode
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 
>  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
> kl...@major-k.de
> 
> 
> ___
> 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
___
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


native scroller cuts off parts of last line in a field

2021-04-20 Thread Klaus major-k via use-livecode
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
kl...@major-k.de


___
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