Hi all, I am back trying to finish up a project I started months ago, i finally found some time to try and finish it, this is a web app that I plan deploying for internal use at work, the app is a very simple Inventory service, I have really not had much time to go through all the tutorials unfortunately because of the lack of time, and I am not at a point where I really need to finish this app as I will soon be needing it to keep track of project parts.
The issue I can't seem to figure out is when viewing the app on a phone or if when resizing the browser app, I see the whole content does not get resized accordingly, please see the two images below:
Notice how the Table header is outside of the Tab container, and also the Navigation Bar doesn't get resized to cover the full width of the browser.
As I mentioned above, this may be a very stupid question but again, I have not had much time to go through the tutorials, I pretty much decided to dive into creating an ABMaterial web app because I saw that it would not take so much to do ?
Here's is also the code where I create the Table container
The code for BuildContainer
Any hints as to why the app doesn't get resized according to the screen size?
Walter
The issue I can't seem to figure out is when viewing the app on a phone or if when resizing the browser app, I see the whole content does not get resized accordingly, please see the two images below:
Notice how the Table header is outside of the Tab container, and also the Navigation Bar doesn't get resized to cover the full width of the browser.
As I mentioned above, this may be a very stupid question but again, I have not had much time to go through the tutorials, I pretty much decided to dive into creating an ABMaterial web app because I saw that it would not take so much to do ?
Here's is also the code where I create the Table container
ABMContainer:
Dim tabs As ABMTabs
tabs.Initialize2(page, "tabs", 98,-8, 8, "tabs")
' create the tabs as ABMContainers
Dim cont As ABMContainer = BuildTabContainer("tab1", "")
Dim cont2 As ABMContainer = BuildTabContainer("tab2", "")
Dim tlb2 As ABMTable = FillHermosaProtoA
Dim tbl1 As ABMTable = FillTable0
cont.AddRows(1, True, "").AddCells12(1, "")
cont.BuildGrid
cont.Cell(1,1).AddComponent(tlb2)
cont2.AddRows(1, True, "").AddCells12(1, "")
cont2.BuildGrid
cont2.Cell(1,2).AddComponent(tbl1)
cont.IsResponsiveContainer = True
cont2.IsResponsiveContainer = True
tabs.AddTab("Parts", "Hermosa Proto A Parts", cont,3,3,3,12,12,12,True,True, "mdi-hardware-memory", "")
tabs.AddTab("Equipment", "Equipment Inventory", cont2,3,3,3,12,12,12,True,False, "mdi-action-work", "")
page.Cell(1,1).AddComponent(tabs)
page.Refresh
' Tell the browser we finished loading
page.FinishedLoading
' restoring the navigation bar position
page.RestoreNavigationBarPosition
The code for BuildContainer
CreateContainer:
Sub BuildTabContainer(id As String, Text As String) As ABMContainer
Dim Tabc As ABMContainer
Tabc.Initialize(page, id,"tabpagewhite")
Tabc.AddRows(1,True, "").AddCells12(1,"")
Tabc.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
Dim lbl As ABMLabel
lbl.Initialize(page, id & "lbl", Text, ABM.SIZE_H5, True, "")
Tabc.Cell(1,1).AddComponent(lbl)
Return Tabc
End Sub
Any hints as to why the app doesn't get resized according to the screen size?
Walter