[ http://jira.jboss.com/jira/browse/RF-3419?page=all ]

Anton Belevich updated RF-3419:
-------------------------------

     Original Estimate: 5 hours
    Remaining Estimate: 5 hours
              Assignee: Anton Belevich  (was: Ilya Shaikovsky)

> contextMenu doesn't appears after specified event
> -------------------------------------------------
>
>                 Key: RF-3419
>                 URL: http://jira.jboss.com/jira/browse/RF-3419
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Ilya Shaikovsky
>         Assigned To: Anton Belevich
>             Fix For: 3.2.2
>
>   Original Estimate: 5 hours
>  Remaining Estimate: 5 hours
>
> If you using demosite page without modifications - works ok.
> But after I've added some components to page:
> <ui:composition xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:ui="http://java.sun.com/jsf/facelets";
>       xmlns:h="http://java.sun.com/jsf/html";
>       xmlns:f="http://java.sun.com/jsf/core";
>       xmlns:a4j="http://richfaces.org/a4j";
>       xmlns:rich="http://richfaces.org/rich";>
>       <style>
> .cent {
>       text-align: center;
> }
> .rich-menu-item {
>       text-align: left;
> }
> .rich-menu-group {
>       text-align: left;
> }
> </style>
>       <h:form>
>       <h:panelGrid columns="1" columnClasses="cent">
>               <h:panelGroup id="picture">
>                       <h:graphicImage 
> value="/richfaces/jQuery/images/pic1.jpg" id="pic"
>                               style="border : 5px solid #E4EAEF" />
>                       <rich:contextMenu event="oncontextmenu" attachTo="pic"
>                               submitMode="none"> 
>                               <rich:menuItem value="Zoom In" 
> onclick="enlarge();" id="zin"></rich:menuItem>
>                               <rich:menuItem value="Zoom Out" 
> onclick="decrease();" id="zout"></rich:menuItem>
>                       </rich:contextMenu>
>               </h:panelGroup>
>       </h:panelGrid>
>       <script type="text/javascript">
>       function enlarge(){
>               
> document.getElementById('pic').width=document.getElementById('pic').width*1.1;
>               
> document.getElementById('pic').height=document.getElementById('pic').height*1.1;
>       }
>       function decrease(){
>               
> document.getElementById('pic').width=document.getElementById('pic').width*0.9;
>               
> document.getElementById('pic').height=document.getElementById('pic').height*0.9;
>       }
>       </script>
>               <rich:panel id="panel">
>                       <h:outputText value="panel" />
>               </rich:panel>
>               <rich:contextMenu attached="true" attachTo="panel" 
> event="onclick">
>                       <rich:menuItem value="Item 1" />
>               </rich:contextMenu>
>       </h:form>
> </ui:composition>
> second menu appears ok. But the first menu for pic appears only after double 
> right click and doesn't appears after single right click anymore.
> If you'll remove last panel and menu for this panel - first menu will works 
> ok again.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to