Announcement

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

    how to remove a part color in Menu Item

    We are using SmartGWT Pro 3.0 version.

    Menu button's MenuItem contains some unwanted color on the left side looks like margin.
    How to remove this,
    Attached Files

    #2
    We need the code, a screenshot, the browser in use, the full version of SmartGWT and what DOCTYPE is in your .html.

    Comment


      #3
      And the skin.

      Comment


        #4
        Gwt Version : SmartGWT Pro 3.0 version.

        Screen Shot is attached...

        Web Browser : Firefox 8.0.1

        Java Coding:
        final MenuButton menuButton = new MenuButton("Profile");
        menuButton.setBaseStyle("header_action_label");
        final Menu menu = new Menu();
        menu.setBackgroundColor("#808080");
        MenuItem changePassword = new MenuItem("Change Password");
        changePassword.set_baseStyle("style='font-size:14px; color: #ffffff;");
        menu.setItems(changePassword);
        menuButton.setMenu(menu);
        menuButton.setShowMenuOnRollOver(true);


        CSS code:
        .header_action_label
        {
        font-size: 14px;
        color: #ffffff;
        font-family: Cambria;
        }
        Attached Files

        Comment


          #5
          That left-hand margin is where checkmarks and other icons appear. If you have no menu items that need such features, you can setShowIcons(false) on the Menu to eliminate the space.

          Comment


            #6
            ya its working...
            Thanks...

            Comment


              #7
              hi,

              I have set false for showicon() but the content in the MenuItem gets Left aligned and more space is left at right side,

              How can i change its width.

              Comment


                #8
                Use setWidth() to change a widget's width.

                Comment


                  #9
                  Sorry, There is no setWidth() method for MenuItem and for Menu it is not working.

                  Comment


                    #10
                    You should be able to call setWidth() on the menu and see the width be respected.
                    If this isn't working for you can you show us a little test case demonstrating this - we are not aware of a problem with this method

                    Regards
                    Isomorphic Software

                    Comment

                    Working...
                    X