Results 1 to 4 of 4

Thread: Context Menu declared in uibinder is shown on reveal

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
      0  

    Exclamation Context Menu declared in uibinder is shown on reveal

    Using ext gwt beta 3.0.0 - beta2 with gwtp 0.6
    when a context menu is declared as follows:
    Code:
    <ui:UiBinder
            xmlns:container="urn:import:com.sencha.gxt.widget.core.client.container"
            xmlns:menu="urn:import:com.sencha.gxt.widget.core.client.menu">
    
    
        <container:FlowLayoutContainer addStyleNames="row">
            <menu:Menu ui:field="_contextMenu" shadow="true" visible="false" />
        </ontainer:FlowLayoutContainer>
    </ui:UiBinder>
    It is shown when the widget is first shown, before the mouse is clicked. setting the visible attribute to false doesn't change things.

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    You are not setting any contextmenu. You are setting the menu as normal child to your FlowLayoutContainer. You need to add it to the contextMenu attribute of the FlowLayoutContainer. To make this work you will need to provide it or use the GXT UiBinder bridge and add it using ui attributes.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Thank you for your quick answer. And how to declare a context menu in the xml then?

  4. #4
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    140
    Vote Rating
    1
      0  

    Default

    You probably need to declare it separately in a distinct .ui.xml and attach it to the view when needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •