FIX: Show topic progress on iPad when portrait-oriented (#9181)

This commit is contained in:
Bianca Nenciu 2020-03-12 13:46:12 +02:00 committed by GitHub
parent 799613c859
commit b7fb6d0d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}