diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-29 18:22:23 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-29 18:22:23 +0500 |
commit | ab6ab3a967bbb1ff5ce2cef12b2fddd196913014 (patch) | |
tree | d71ede8100f946664384499428720336d31255a2 /webapp/components | |
parent | 128e6c9d97420f35e4b9ddb8ca6cc218c85a65c6 (diff) | |
download | chat-ab6ab3a967bbb1ff5ce2cef12b2fddd196913014.tar.gz chat-ab6ab3a967bbb1ff5ce2cef12b2fddd196913014.tar.bz2 chat-ab6ab3a967bbb1ff5ce2cef12b2fddd196913014.zip |
Fixing dropdown for posts on mobile
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/post_info.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_info.jsx b/webapp/components/post_info.jsx index 0aa71edd7..2d41b0e54 100644 --- a/webapp/components/post_info.jsx +++ b/webapp/components/post_info.jsx @@ -22,7 +22,7 @@ export default class PostInfo extends React.Component { } dropdownPosition(e) { var position = $('#post-list').height() - $(e.target).offset().top; - var dropdown = $(e.target).next('.dropdown-menu'); + var dropdown = $(e.target).closest('.col__reply').find('.dropdown-menu'); if (position < dropdown.height()) { dropdown.addClass('bottom'); } |