When using a side menu and right bar and toastbar, setting the title of the window results in overwritten text: The below code demos the problem. Click on the filter button (far right, then click on apply in the dialog). The result is below
<https://lh3.googleusercontent.com/-I8GUbqv2UyI/V-Hn-9oUNmI/AAAAAAAAETo/bwq5pfhtUgYXu2JHhNdzQULJY9xJrIw6gCLcB/s1600/Screenshot%2Bfrom%2B2016-09-20%2B18-52-46.png> package com.mycompany.myapp; import com.codename1.components.ToastBar; import com.codename1.ui.Command; import com.codename1.ui.Display; import com.codename1.ui.FontImage; import com.codename1.ui.Toolbar; import com.codename1.ui.layouts.BoxLayout; import com.codename1.ui.plaf.UIManager; import com.codename1.ui.table.Table; public class FrmClients extends com.codename1.ui.Form { protected Table table = null; protected DlgClientFilter dlgFilter = new DlgClientFilter(); ToastBar.Status status = ToastBar.getInstance().createStatus(); public FrmClients() { initManualComponents(); } protected void initManualComponents() { Toolbar.setGlobalToolbar(true); setLayout(new BoxLayout(BoxLayout.Y_AXIS)); setTitle("Clients"); setName("FrmClients"); // sidebar if (getToolbar() == null) { setToolbar(new Toolbar()); } getToolbar().addCommandToSideMenu(new Command("Dashboard") { public void actionPerformed(com.codename1.ui.events.ActionEvent ev) { } }); Command cmdFilter = new Command("", FontImage.createMaterial(FontImage. MATERIAL_FILTER_LIST, UIManager.getInstance().getComponentStyle("Command"), 5)) { public void actionPerformed(com.codename1.ui.events.ActionEvent ev) { onFilter(); } }; getToolbar().addCommandToRightBar(cmdFilter); table = new Table(); this.add(table); } public void refresh() { status.setMessage("Test"); status.setProgress(0); status.show(); loadClients(status); } protected void loadClients(ToastBar.Status prog) { prog.clear(); setTitle("Test Done"); return; } protected void onFilter() { dlgFilter.show(10, 0, (int)(Display.getInstance().getDisplayWidth()*.5), 0 ); refresh(); } } -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/4795c019-67b3-4485-a60c-b1812773de52%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
