mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Show topic progress on iPad when portrait-oriented (#9181)
This commit is contained in:
parent
799613c859
commit
b7fb6d0d06
@ -43,11 +43,11 @@ export default Component.extend(PanEvents, {
|
|||||||
headerContainer = document.querySelector(".d-header"),
|
headerContainer = document.querySelector(".d-header"),
|
||||||
headerHeight = (headerContainer && headerContainer.offsetHeight) || 0;
|
headerHeight = (headerContainer && headerContainer.offsetHeight) || 0;
|
||||||
|
|
||||||
if (timelineContainer && composer) {
|
if (composer) {
|
||||||
renderTimeline =
|
renderTimeline =
|
||||||
width > MIN_WIDTH_TIMELINE &&
|
width > MIN_WIDTH_TIMELINE &&
|
||||||
window.innerHeight - composer.offsetHeight - headerHeight >
|
window.innerHeight - composer.offsetHeight - headerHeight >
|
||||||
timelineContainer.offsetHeight;
|
(timelineContainer ? timelineContainer.offsetHeight : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user