mirror of https://github.com/vector-im/riot-web
parent
da09362f99
commit
97c5058f00
|
@ -128,7 +128,6 @@ export default class TextualBody extends React.Component {
|
||||||
/* Calculate how many percent does the pre element take up.
|
/* Calculate how many percent does the pre element take up.
|
||||||
* If it's less than 30% we don't add the expansion button. */
|
* If it's less than 30% we don't add the expansion button. */
|
||||||
const percentageOfViewport = pre.offsetHeight / window.innerHeight * 100;
|
const percentageOfViewport = pre.offsetHeight / window.innerHeight * 100;
|
||||||
console.log("expansionButtonExists", percentageOfViewport);
|
|
||||||
if (percentageOfViewport < 30) return;
|
if (percentageOfViewport < 30) return;
|
||||||
|
|
||||||
const button = document.createElement("span");
|
const button = document.createElement("span");
|
||||||
|
|
Loading…
Reference in New Issue