B4J Question [ABMaterial] TopItemWithSideBar is not visible on mobiles

peacemaker

Expert
Licensed User
Longtime User
Hi, All

In Big Chrome TopItem is visible OK at right side of the NavigationBar, but if make browser's window width smaller - TopItem is hidden, and fully not visible on mobile screens.
Any help ?
 

alwaysbusy

Expert
Licensed User
Longtime User
I need more info on how to reproduce this. Works fine in our projects.

1662876590919.png
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Just so:
B4X:
Sub ConnectNavigationBar(page As ABMPage) 'ignore   
    ' Clear the dummies we created in BuildNavigationBar
    page.NavigationBar.Clear
    
        'lang switch
    page.NavigationBar.AddTopItem("lang", "{NBSP}{NBSP}{NBSP}", "mdi-action-language", "", True)
    For i = 0 To others.langs.Length - 1
        Dim t As String = others.langs(i).ToUpperCase
        page.NavigationBar.AddTopSubItem("lang", "lang_" & t, t, "", "")
    Next
    
    
    'where others.langs:
    Dim langs() As String = Array As String("RU", "EN", "ES")

It works, but if to make big Chrome window width smaller - it's hidden at 70%, and not even visible on mobiles.
 
Upvote 0
Top