CInfoViewer: try to fix paint info text box after delayed painting of timescale

This commit is contained in:
2015-12-30 01:57:34 +01:00
parent c15731e6e7
commit 5d6e33ac9d

View File

@@ -1932,6 +1932,10 @@ void CInfoViewer::showInfoFile()
return; return;
} }
//check dimension, if changed then kill to force reinit
if (infobar_txt->getWidth() != width)
infobar_txt->kill();
//set some properties for info object //set some properties for info object
infobar_txt->setDimensionsAll(xStart, yStart, width, height); infobar_txt->setDimensionsAll(xStart, yStart, width, height);
infobar_txt->setCorner(RADIUS_SMALL); infobar_txt->setCorner(RADIUS_SMALL);