Why is the text area not getting resized?
I am able to display the P_soc properly but when I tries to print (P_temp_h)*0.1 if it is 4 digit( i.e 2 digit before decimal and 1 digit after decimal and decimal point) then I could display the data properly. But If it is 5 digit then the function resizeToCurrentText() is not resizing the textarea. What is wrong here?
Note: P_temp_h is an integer value and multiplying it by 0.1, I am just putting a decimal value after leftmost one digit, i.e., I am conveting it to float.
void DataScreenView::handleTickEvent()
{
/* Board A parameter */
b1SOC_bp.setValue(P_soc); // only integer value in %
b1SOC_tp.setValue(P_soc); // only integer value in %
Unicode::snprintfFloat(b1TMPval_taBuffer, B1TMPVAL_TA_SIZE, "%.1f", (P_temp_h)*0.1); //float value with precision 1
b1TMPval_ta.resizeToCurrentText();
b1TMPval_ta.invalidate();
}