Browse files

BUG TreeDropdownField panel positioning

See #809, thanks martinduparc
  • Loading branch information...
1 parent 4684601 commit b22a7afc037445ce4452f190404ffeb79107a9ff @chillu chillu committed Oct 2, 2012
Showing with 1 addition and 14 deletions.
  1. +1 −14 javascript/TreeDropdownField.js
View
15 javascript/TreeDropdownField.js
@@ -54,20 +54,7 @@
$('body').bind('click', _clickTestFn);
var panel = this.getPanel(), tree = this.find('.tree-holder');
-
- // set the panel to the bottom of the field. Takes into account the
- // mouse scroll position.
- // @todo - support for opening above content
- var scrollTop = 0;
-
- this.parents().each(function(i, e) {
- if($(e).scrollTop() > 0) {
- scrollTop = $(e).scrollTop();
- return;
- }
- });
-
- var top = this.position().top + this.height() + scrollTop;
+ var top = this.position().top + this.height();
panel.css('top', top);
panel.css('width', this.width());

0 comments on commit b22a7af

Please sign in to comment.