A platform for community discussion. Free, open, simple.
FIX: Show topic progress on iPad when portrait-oriented (#9181)
Bianca Nenciub7fb6d0d06ab
diff --git a/app/assets/javascripts/discourse/components/topic-navigation.js.es6 b/app/assets/javascripts/discourse/components/topic-navigation.js.es6index bff5f73a2ee..7c96ccf00cf 100644--- a/app/assets/javascripts/discourse/components/topic-navigation.js.es6+++ b/app/assets/javascripts/discourse/components/topic-navigation.js.es6@@ -43,11 +43,11 @@ export default Component.extend(PanEvents, {headerContainer = document.querySelector(".d-header"),headerHeight = (headerContainer && headerContainer.offsetHeight) || 0;- if (timelineContainer && composer) {+ if (composer) {renderTimeline =width > MIN_WIDTH_TIMELINE &&window.innerHeight - composer.offsetHeight - headerHeight >- timelineContainer.offsetHeight;+ (timelineContainer ? timelineContainer.offsetHeight : 0);}}