Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    MenuBar text-align

    Hello,

    I am using SmartGWT 2.4 with eclipse Indigo.

    I am trying to add a MenuBar to my AppEngine Application.

    I have the MenuBar added almost as I would like (accross the top with submenus as I have defined).

    I cannot seem to be able to get the text of the MenuBar to align on the left of the item, always in the center.

    I have tried just about everything I can think of.
    MenuBar MainMenu = new MenuBar();
    MainMenu.addStyleName("MyMenuBar");
    MainMenu.setAlign(Alignment.LEFT);
    Menu FileMenu = new Menu();
    FileMenu.setTitle("File");
    MenuItem ExitItem = new MenuItem("Exit");
    FileMenu.setItems(ExitItem);
    MainMenu.setMenus(FileMenu);
    RootPanel.get("MyMenu").add(MainMenu);
    MainMenu.draw();

    The text "File" is always centered.
    I have added this to a .css file
    .MyMenuBar
    {
    text-align: left;
    }
    I just can' seem to move the text to the left.

    Thanks,

    Raney
Working...
X