mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 22:38:09 +08: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"),
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user