[richfaces-issues] [JBoss JIRA] (RF-7921) DropDownMenu: wrong vertical positioning of popup list on scrolling in Firefox

Mano Swerts (Commented) (JIRA) jira-events at lists.jboss.org
Fri Dec 2 09:39:41 EST 2011


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

Mano Swerts commented on RF-7921:
---------------------------------

I created this work around having the same problem using the DropDownMenu in an extendedDataTable:

{code}
jQuery(document).ready(function() {
	var originalSetVisibility = RichFaces.Menu.Layers.setVisibility;

	RichFaces.Menu.Layers.setVisibility = function(layer, visible) {
		originalSetVisibility(layer, visible);

		menu = jQuery('#' + layer.replace(/:/g, '\\:'));
		var top = getTop(menu);
		
		menu.css({ 'top' : top + 'px' });
	};
	
	function getTop(menu) {
		var top = 0;

		if (!jQuery.browser.mozilla) {
			var scrolledContainer = menu.parents('.extdt-content');	
			var scrollPosition = scrolledContainer.attr('scrollTop');
			top = top - scrollPosition;
		}
		
		return top;
	}
});
{code}
                
> DropDownMenu: wrong vertical positioning of popup list on scrolling in Firefox
> ------------------------------------------------------------------------------
>
>                 Key: RF-7921
>                 URL: https://issues.jboss.org/browse/RF-7921
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-menu
>    Affects Versions: 3.3.1, 3.3.2.CR1
>         Environment: winXP, hibernate 3.2.4.sp1, seam 2.1.0.SP1, firefox 3.5.3
>            Reporter: rofl rofl
>            Priority: Minor
>              Labels: drop_down_menu, firefox, position
>             Fix For: 3.Future
>
>         Attachments: cannot_reproduce.jpg, ddmenu_pos_noScrolling.JPG, ddmenu_pos_withScrolling.JPG
>
>
> The popup list of the drop down menu is wrongly positioned when one scrolls the page. It is shown too far below it's anchor point (i.e. it is not directly connected to it's anchor point) - the offset changes on scrolling (i.e. the more one scrools down, the farer below it is shown)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list