strange rendering on text field

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 580
Joined: Wed Nov 22, 2006 3:42 pm
Location: France
Contact:

strange rendering on text field

Post by Thierry » Thu Sep 21, 2017 11:25 am

Hi,

is this a known bug?

I'm on Mac Sierra with LiveCode Indy 8.1.6 (the latest).

The text inside the field is fine as I can use it to build a working html page;
only the rendering of the 1st line is wrong.

Here is a screenshot:
Capture d’écran 2017-09-21 à 12.15.47.png
N chars: 20207
N lines: 8
N chars in line 1: 10096

Thierry
Thierry Douez - https://sunny-tdz.com
Pourquoi tant de notes lorsqu'il suffit de jouer les plus belles... [Barbara]

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1549
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: strange rendering on text field

Post by [-hh] » Thu Sep 21, 2017 11:58 am

Hi Thierry.

This is possibly conflicting with the maximum pixel width: The field is shifting the overflow to left and is thus overwriting (as it is non-wrapped).

I have also seen such overflows. This could possibly be changed if you report it to QCC.

[If I remember right, the maximum line length in a normal field is 65535 bytes, so we have maximally 65535 div 2 = 32767 pixels available.]

Hermann
shiftLock happens

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 580
Joined: Wed Nov 22, 2006 3:42 pm
Location: France
Contact:

Re: strange rendering on text field

Post by Thierry » Thu Sep 21, 2017 12:35 pm

[-hh] wrote: This is possibly conflicting with the maximum pixel width
Thanks Hermann,

Yes, I'm aware of this but might be another way to deal with this?

don't know...

In my case,
I don't care much as long as the content of the field is not altered
when transforming it.

Regards,

Thierry
Thierry Douez - https://sunny-tdz.com
Pourquoi tant de notes lorsqu'il suffit de jouer les plus belles... [Barbara]

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1549
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: strange rendering on text field

Post by [-hh] » Thu Sep 21, 2017 7:04 pm

Thierry,
you could think about putting the first line in a separate wrapping field.

You could also think about putting in returns (at least in that first line)
HTML handles cr as space. So inserting a cr instead of a space within a tag doesn't change the web display.

Good luck with your app!

Hermann
shiftLock happens

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 580
Joined: Wed Nov 22, 2006 3:42 pm
Location: France
Contact:

Re: strange rendering on text field

Post by Thierry » Mon Sep 25, 2017 8:41 am

[-hh] wrote: you could think about .......
Thanks but I wasn't asking for any kind of help, as I stated before.

As I found what I consider an anomaly (seen in the screenshot),
I just wanted to report it to the team in this forum named 'Bug triage'!
Good luck with your app!
MyApp was working fine before I've post the OP :)

Cheers,

Thierry
Thierry Douez - https://sunny-tdz.com
Pourquoi tant de notes lorsqu'il suffit de jouer les plus belles... [Barbara]

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1549
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: strange rendering on text field

Post by [-hh] » Mon Sep 25, 2017 8:49 am

Thierry wrote:Yes, I'm aware of this but might be another way to deal with this?
So try to deal with it -- or not -- in the way I suggested ;-)
And still "Good luck", with your working app ;-)
shiftLock happens

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 580
Joined: Wed Nov 22, 2006 3:42 pm
Location: France
Contact:

Re: strange rendering on text field

Post by Thierry » Mon Sep 25, 2017 9:30 am

[-hh] wrote:
Yes, I'm aware of this but might be another way to deal with this?
So try to deal with it ....-
I meant and still believe LiveCode engine could deal with this in another way...
And still "Good luck", with your working app ;-)
Danke :)

Thierry
Thierry Douez - https://sunny-tdz.com
Pourquoi tant de notes lorsqu'il suffit de jouer les plus belles... [Barbara]

Post Reply

Return to “Bug Triage”