UX: Mobile topic progress was docking in the wrong place
This commit is contained in:
parent
4661c4274c
commit
fd57865046
|
@ -134,10 +134,7 @@ export default Ember.Component.extend({
|
||||||
isDocked = offset >= threshold - windowHeight + topicProgressHeight + composerHeight;
|
isDocked = offset >= threshold - windowHeight + topicProgressHeight + composerHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
const $mainButtons = $('#topic-footer-main-buttons');
|
const dockPos = $(document).height() - $('#topic-bottom').offset().top;
|
||||||
const mainPos = $mainButtons.length > 0 ? $mainButtons.offset().top : 0;
|
|
||||||
const dockPos = $(document).height() - mainPos - topicProgressHeight;
|
|
||||||
|
|
||||||
if (composerHeight > 0) {
|
if (composerHeight > 0) {
|
||||||
if (isDocked) {
|
if (isDocked) {
|
||||||
$topicProgressWrapper.css('bottom', dockPos);
|
$topicProgressWrapper.css('bottom', dockPos);
|
||||||
|
|
Loading…
Reference in New Issue