jinyistudio Well-Known Member Licensed User Longtime User Nov 26, 2020 #1 Hi I put a ABMContainer into a page.cell(1,1). Could i align it to the bottom of the cell ?
Cableguy Expert Licensed User Longtime User Jan 7, 2021 #2 jinyistudio said: Hi I put a ABMContainer into a page.cell(1,1). Could i align it to the bottom of the cell ? Click to expand... Did you ever find the way to do this? Upvote 0
jinyistudio said: Hi I put a ABMContainer into a page.cell(1,1). Could i align it to the bottom of the cell ? Click to expand... Did you ever find the way to do this?
jinyistudio Well-Known Member Licensed User Longtime User Jan 7, 2021 #3 I use dumb method : MarginTop Upvote 0
Cableguy Expert Licensed User Longtime User Jan 7, 2021 #4 jinyistudio said: I use dumb method : MarginTop Click to expand... Not dumb, I'm using it too! Upvote 0
alwaysbusy Expert Licensed User Longtime User Jan 8, 2021 #5 There is absolutely nothing wrong with using the Margins, but here may be another approach: B4X: page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") Dim btn As ABMButton btn.InitializeFlat(page, "btn", "", "", "Bottom", "") btn.HTMLAddClass("alignbottom") page.Cell(3,1).SetFixedHeight(100,False) page.Cell(3,1).AddComponent(btn) Result: Alwaysbusy Upvote 0
There is absolutely nothing wrong with using the Margins, but here may be another approach: B4X: page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") Dim btn As ABMButton btn.InitializeFlat(page, "btn", "", "", "Bottom", "") btn.HTMLAddClass("alignbottom") page.Cell(3,1).SetFixedHeight(100,False) page.Cell(3,1).AddComponent(btn) Result: Alwaysbusy
jinyistudio Well-Known Member Licensed User Longtime User Jan 8, 2021 #6 It doesn't work ABM is 4.30 I put page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") in the BuildPage B4X: Dim btn1 As ABMButton btn1.Initializefloating(page, "tkselect", "mdi-action-list", "darkred") btn1.size = ABM.BUTTONSIZE_NORMAL btn1.HTMLAddClass("alignbottom") body.Cell(1,2).AddArrayComponent(btn1,"tokenselect") Upvote 0
It doesn't work ABM is 4.30 I put page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") in the BuildPage B4X: Dim btn1 As ABMButton btn1.Initializefloating(page, "tkselect", "mdi-action-list", "darkred") btn1.size = ABM.BUTTONSIZE_NORMAL btn1.HTMLAddClass("alignbottom") body.Cell(1,2).AddArrayComponent(btn1,"tokenselect")
Cableguy Expert Licensed User Longtime User Jan 8, 2021 #7 jinyistudio said: It doesn't work ABM is 4.30 I put page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") in the BuildPage B4X: Dim btn1 As ABMButton btn1.Initializefloating(page, "tkselect", "mdi-action-list", "darkred") btn1.size = ABM.BUTTONSIZE_NORMAL btn1.HTMLAddClass("alignbottom") body.Cell(1,2).AddArrayComponent(btn1,"tokenselect") Click to expand... Put it in connect page... i place all my controls there. On the build page i mostly only create the needed grids Upvote 0
jinyistudio said: It doesn't work ABM is 4.30 I put page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") in the BuildPage B4X: Dim btn1 As ABMButton btn1.Initializefloating(page, "tkselect", "mdi-action-list", "darkred") btn1.size = ABM.BUTTONSIZE_NORMAL btn1.HTMLAddClass("alignbottom") body.Cell(1,2).AddArrayComponent(btn1,"tokenselect") Click to expand... Put it in connect page... i place all my controls there. On the build page i mostly only create the needed grids
alwaysbusy Expert Licensed User Longtime User Jan 8, 2021 #8 jinyistudio said: page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") in the BuildPage Click to expand... That is where you went wrong. It is an Injection of CSS so the page must already exist in your browser. If you want to do it in BuildPage, make a seperate .css file and use Page.AddExtraCSSFile() Upvote 0
jinyistudio said: page.InjectCSS(".alignbottom {position: absolute;bottom:0 }") in the BuildPage Click to expand... That is where you went wrong. It is an Injection of CSS so the page must already exist in your browser. If you want to do it in BuildPage, make a seperate .css file and use Page.AddExtraCSSFile()
Cableguy Expert Licensed User Longtime User Jan 8, 2021 #9 Can this approach be used to add a hover evet to a button?? Upvote 0