In progress, building the Look4How Viewer with ABMaterial 4.25.
The main page layout uses the navigation sidebar to list the items and a ABMEditor to show the item content. The grid has (only) 1 row and 1 cell which is used to show the editor.
Question:
How to set the editor margins (better anchor), so that these fill the cell and stay fixed when
In below screenshot, the editor is filling half the cell, instead of the full cell. When adding more text with CRLF the editor is expanding over the fixed footer.
In this screenshot the editor height is moving over the footer:
The main page layout uses the navigation sidebar to list the items and a ABMEditor to show the item content. The grid has (only) 1 row and 1 cell which is used to show the editor.
B4X:
page.AddRowsMV2(1,True,2,2,2,2,True,"").AddCellsOSMPV(1,0,0,0,12,12,12,2,2,2,2,True,"")
Question:
How to set the editor margins (better anchor), so that these fill the cell and stay fixed when
- adding more text (the hor scrollbar should appear, the editor height should not exceed cell size and move over the fixed footer) or
- change the screen size.
B4X:
Dim Editor As ABMEditor
Editor.Initialize(page, "Editor", True, False, "")
' page.Cell(RowNr,CellNr).PaddingBottom = 2
' Editor.ForceMinimalInitialHeight = True
' page.Cell(RowNr,CellNr).MarginLeft = 5
' page.Cell(RowNr,CellNr).MarginRight = 5
' page.Cell(RowNr,CellNr).MarginTop = 5
' page.Cell(RowNr,CellNr).MarginBottom = 5
' page.Cell(RowNr,CellNr).SetFixedHeightFromBottom(10, True)
page.Cell(1,1).AddComponent(Editor)
In below screenshot, the editor is filling half the cell, instead of the full cell. When adding more text with CRLF the editor is expanding over the fixed footer.
In this screenshot the editor height is moving over the footer: