Skip to content

Commit b1e9ce4

Browse files
committed
Merge branch 'staging'
2 parents 849cc2e + f8f4579 commit b1e9ce4

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

client-participation/css/conversationView.scss

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ img {
103103
}
104104

105105
.conversationViewRoot {
106+
margin-top: 1px;
106107
overflow: hidden; // trim carousel contents. carousel lives in an overflow: visible container, this crops it.
107108
}
108109

client-participation/js/main.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ function getHeight() {
7272
var DOCUMENT_HEIGHT_FUDGE_FACTOR = 10; // prevent scrollbar, not sure why it's not correct without this.
7373
return $(document.body).outerHeight() + DOCUMENT_HEIGHT_FUDGE_FACTOR;
7474
}
75-
var oldDocumentHeight = undefined;
76-
setInterval(function() {
77-
var nu = getHeight();
78-
if (nu !== oldDocumentHeight) {
79-
oldDocumentHeight = nu;
80-
PostMessageUtils.postResizeEvent(nu);
81-
}
82-
}, 200);
75+
if (isEmbedded()) {
76+
var oldDocumentHeight = undefined;
77+
setInterval(function () {
78+
var nu = getHeight();
79+
if (nu !== oldDocumentHeight) {
80+
oldDocumentHeight = nu;
81+
PostMessageUtils.postResizeEvent(nu);
82+
}
83+
}, 200);
84+
}
8385

8486
function stripParams(paramsToStrip) {
8587
var params = Utils.decodeParams(encodedParams);

0 commit comments

Comments
 (0)