File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ img {
103
103
}
104
104
105
105
.conversationViewRoot {
106
+ margin-top : 1px ;
106
107
overflow : hidden ; // trim carousel contents. carousel lives in an overflow: visible container, this crops it.
107
108
}
108
109
Original file line number Diff line number Diff line change @@ -72,14 +72,16 @@ function getHeight() {
72
72
var DOCUMENT_HEIGHT_FUDGE_FACTOR = 10 ; // prevent scrollbar, not sure why it's not correct without this.
73
73
return $ ( document . body ) . outerHeight ( ) + DOCUMENT_HEIGHT_FUDGE_FACTOR ;
74
74
}
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
+ }
83
85
84
86
function stripParams ( paramsToStrip ) {
85
87
var params = Utils . decodeParams ( encodedParams ) ;
You can’t perform that action at this time.
0 commit comments