Instead of explicitly specifying the text size, we use a call to the new function "setTextSizeOnInfoBlock" (MonitorStream.js)
This will allow us to correctly specify the class for the block.pull/4709/head
parent
33783300bd
commit
dcd3ef06ad
|
|
@ -667,8 +667,7 @@ function MonitorStream(monitorData) {
|
|||
infoBlock.style.zIndex = 0;
|
||||
this.hideImgForInfoBlock();
|
||||
} else {
|
||||
const fontSize = calcTextSizeOnInfoBlock(infoBlock);
|
||||
infoBlock.style.fontSize = params.fontSize || (fontSize)+'px';
|
||||
setTextSizeOnInfoBlock(infoBlock);
|
||||
infoBlock.style.zIndex = 10001;
|
||||
if (params.showImg === false) {
|
||||
this.hideImgForInfoBlock();
|
||||
|
|
|
|||
Loading…
Reference in New Issue