Dieter Baumgartner Member Licensed User Longtime User Feb 9, 2022 #1 Is there a limitation in the contentHeight inside the scrollview of a BBcodeview ? Everythink is ok until it reaches the amount of sv.height arount 5000. Over that, the content gets shortened. [CODE lang="b4x" title="Scrollview height limit ?"] If BBCodeView1.Paragraph.IsInitialized Then Dim ContentHeight As Int = Min(BBCodeView1.Paragraph.Height / textengine.mScale + BBCodeView1.Padding.Top + BBCodeView1.Padding.Bottom, BBCodeView1.mBase.Height) BBCodeView1.mBase.Height = ContentHeight BBCodeView1.sv.Height=ContentHeight BBCodeView1.sv.ScrollViewContentHeight = ContentHeight End If[/CODE] Any solution in the great B4X community ?
Is there a limitation in the contentHeight inside the scrollview of a BBcodeview ? Everythink is ok until it reaches the amount of sv.height arount 5000. Over that, the content gets shortened. [CODE lang="b4x" title="Scrollview height limit ?"] If BBCodeView1.Paragraph.IsInitialized Then Dim ContentHeight As Int = Min(BBCodeView1.Paragraph.Height / textengine.mScale + BBCodeView1.Padding.Top + BBCodeView1.Padding.Bottom, BBCodeView1.mBase.Height) BBCodeView1.mBase.Height = ContentHeight BBCodeView1.sv.Height=ContentHeight BBCodeView1.sv.ScrollViewContentHeight = ContentHeight End If[/CODE] Any solution in the great B4X community ?
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2022 #2 There is no limitation. You aren't expected to set any of these: Code: BBCodeView1.mBase.Height = ContentHeight BBCodeView1.sv.Height=ContentHeight BBCodeView1.sv.ScrollViewContentHeight = ContentHeight Upvote 0
There is no limitation. You aren't expected to set any of these: Code: BBCodeView1.mBase.Height = ContentHeight BBCodeView1.sv.Height=ContentHeight BBCodeView1.sv.ScrollViewContentHeight = ContentHeight