Skip to content

Commit 7d762bc

Browse files
author
will
committed
change show out direction
1 parent 65013d1 commit 7d762bc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

js/jquery-skinner.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@
211211
var parentScrollTop = parentScrollable.scrollTop();
212212
if (parentScrollable.height() + parentTop <= (pos.top + elemUL.outerHeight() + (15) - parentScrollTop)) {
213213
elemUL.css({
214-
'top': 'auto',
215-
'bottom': '0'
214+
'top': $this.prev('.select-skinned-text').children('.select-skinned-cont').height(),
215+
'bottom': 'auto'
216216
});
217217
} else {
218218
elemUL.css({
219-
'top': $this.prev('.select-skinned-text').children('.select-skinned-cont').height(),
220-
'bottom': 'auto'
219+
'top': 'auto',
220+
'bottom': '0'
221221
});
222222
}
223223
if (parentScrollable.width() + parentLeft <= (pos.left + elemUL.outerWidth())) {
@@ -286,7 +286,9 @@
286286
}
287287
}
288288
});
289-
skin.selectskinned(element);
289+
if ($(element).parent().is('.select-skinned')) {} else {
290+
skin.selectskinned(element);
291+
}
290292
return this;
291293
};
292294
// e.g.

0 commit comments

Comments
 (0)