[richfaces-planning-issues] [JBoss JIRA] Commented: (RFPL-1297) Create architectural document for client-side code: positioning API usage

Pavel Yaschenko (JIRA) jira-events at lists.jboss.org
Thu Apr 28 07:01:30 EDT 2011


    [ https://issues.jboss.org/browse/RFPL-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598695#comment-12598695 ] 

Pavel Yaschenko commented on RFPL-1297:
---------------------------------------

Let's assume that there are 2 rectangles: one that is positioned relative to the
other. It could be a tooltip that is positioned relatively to a button or it could
be  a dropdown menu.  
The TOOLTIP, DROPDOWN, DDMENUGROUP strategies differ from each other with the order
of positions search for auto positioning. 
Let's check DROPDOWN:{from:"AA", to:"AA", auto:["LBRB", "LTRT", "RBLB", "RTLT"]}.
You can notice "auto" array with the order of positions we discussed. 
The "LBRB" value is divided into 2 parts: from(LB) and to(RB). The "from" part
defines a corner of rectangle the dropdown is relative to. The "to" part defines the
direction the dropdown menu is drawn.
So first of all dropdown menu tries to draw itself in the right-bottom direction
from left-bottom of rectangle it is relative to. If something prevents it to draw
(window border, for example) the next strategy "LTRT" is applied. 

> Create architectural document for client-side code: positioning API usage
> -------------------------------------------------------------------------
>
>                 Key: RFPL-1297
>                 URL: https://issues.jboss.org/browse/RFPL-1297
>             Project: RichFaces Planning
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>            Reporter: Nick Belaevski
>            Assignee: Pavel Yaschenko
>              Labels: rev, tran
>             Fix For: 4.1.0.Milestone1
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-planning-issues mailing list