if ("fixed".equals(gQueryUi.css("position", false))) {
return GQuery.$(getViewportElement());
}
if (scrollParentPositionTest(gQueryUi)) {
scrollParent = gQueryUi.parents().filter(new Predicate() {
public boolean f(Element e, int index) {
GQuery $e = GQuery.$(e);
String position = $e.css("position", true);
return ("relative".equals(position) || "absolute".equals(position) || "fixed"
.equals(position))
&& isOverflowEnabled($e);
}
});
} else {
scrollParent = gQueryUi.parents().filter(new Predicate() {
public boolean f(Element e, int index) {
return isOverflowEnabled(GQuery.$(e));
}
});