UX: Mobile topic progress was docking in the wrong place

This commit is contained in:
Robin Ward 2016-06-02 12:40:17 -04:00
parent 4661c4274c
commit fd57865046
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 1 additions and 4 deletions

View File

@ -134,10 +134,7 @@ export default Ember.Component.extend({
isDocked = offset >= threshold - windowHeight + topicProgressHeight + composerHeight;
}
const $mainButtons = $('#topic-footer-main-buttons');
const mainPos = $mainButtons.length > 0 ? $mainButtons.offset().top : 0;
const dockPos = $(document).height() - mainPos - topicProgressHeight;
const dockPos = $(document).height() - $('#topic-bottom').offset().top;
if (composerHeight > 0) {
if (isDocked) {
$topicProgressWrapper.css('bottom', dockPos);