auto change font size to small if text is too long
parent
9dbc8b00ea
commit
9f736816f2
|
@ -1134,15 +1134,17 @@
|
|||
|
||||
this.Viewer3DContainer.appendChild(this.invisibleProductID);
|
||||
|
||||
|
||||
}
|
||||
|
||||
setTimeout(createIFrame.bind(this), 1000);
|
||||
|
||||
// create text below the iframe for information if the text is too long and we set the font size to small
|
||||
|
||||
this.infoText = document.createElement('span');
|
||||
this.infoText.innerText = 'Here1 Text ist zu lang. Wir haben die Schriftgröße auf klein gesetzt. Bitte überprüfe deinen Text.';
|
||||
/* this.infoText.classList.add('shx-info-text'); */
|
||||
this.Viewer3DContainer.appendChild(this.infoText);
|
||||
}
|
||||
|
||||
setTimeout(createIFrame.bind(this), 1000);
|
||||
/* this.infoText.classList.add('shx-info-text'); */
|
||||
this.container.appendChild(this.infoText);
|
||||
}
|
||||
|
||||
initCurrentVariant(id) {
|
||||
|
|
Loading…
Reference in New Issue