Skip to content

TTextView 设置滚动条后,内容显示不全 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonahzheng opened this issue Aug 1, 2020 · 9 comments
Open

TTextView 设置滚动条后,内容显示不全 #23

jonahzheng opened this issue Aug 1, 2020 · 9 comments

Comments

@jonahzheng
Copy link
Contributor

20200801100741
uFrameVertScrollView.zip

@KngStr
Copy link
Collaborator

KngStr commented Sep 9, 2020

你这个问题,我怎么觉得之前修正过了的
图片

@jonahzheng
Copy link
Contributor Author

刚才再次测试了一下,还存在,应该都是断行没有处理好的原因

@KngStr
Copy link
Collaborator

KngStr commented Oct 21, 2020

看我截图。我自己这边测试是OK的。你能说一下重现的步骤么?
看你的字体跟我不一样,你在什么系统下测试的?字体是怎样的设置?

@jonahzheng
Copy link
Contributor Author

object TextView18: TTextView
Size.Width = 225.000000000000000000
Size.Height = 89.000000000000000000
Size.PlatformDefault = False
Position.X = 56.000000000000000000
Position.Y = 328.000000000000000000
TabOrder = 5
TextSettings.WordWrap = True
ScrollBars = Vertical
end

windows7,64位,字体及大小都是默认
就设置了ScrollBars和WordWrap

@KngStr
Copy link
Collaborator

KngStr commented Oct 21, 2020

看图,明显咱们字体不一样。你试一下看看你实际字体是什么

@jonahzheng
Copy link
Contributor Author

object TextView18: TTextView
Size.Width = 225.000000000000000000
Size.Height = 89.000000000000000000
Size.PlatformDefault = False
Position.X = 56.000000000000000000
Position.Y = 328.000000000000000000
TabOrder = 5
TextSettings.Font.Family = 'SimHei'
TextSettings.Font.Size = 15.000000000000000000
TextSettings.WordWrap = True
ScrollBars = Vertical
end

设置了字体后,还是一样的问题,没有显示完整

@jonahzheng
Copy link
Contributor Author

uFrame2.zip

@wfymqj
Copy link

wfymqj commented Mar 22, 2024

@KngStr
这个问题我也发现了,在Windows和Android上均如此。我出现这个问题的原因如下:
我的赋值方式为:TTextView.Text := '测试1:'+ sLineBreak
+ '测试2:'+ sLineBreak
+ '测试3:'+ sLineBreak
...
+ '测试10:';
这种方式就会出现显示不完整的问题。

我用的Delphi11.3,Windows10,Android10
FMXUI版本:2023.06.30.001

@wfymqj
Copy link

wfymqj commented Mar 22, 2024

测试示例:
Test(无编译后的EXE).zip
Test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants