EmitAsyncNaturalSizeComputedSignal(renderInfo.renderedSize.width, renderInfo.renderedSize.height);
}
break;
-
+
case Async::COMPUTE_HEIGHT_FOR_WIDTH:
{
DALI_LOG_RELEASE_INFO("Height for width : %f, %f, line count : %d\n", renderInfo.renderedSize.width, renderInfo.renderedSize.height, renderInfo.lineCount);
// In case of CONSTRAINT, the natural size has already been calculated.
// So we can skip Initialize and Update at this stage.
// Only the layout is newly calculated to obtain the height.
- bool layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
+ bool layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
float height = ComputeHeightForWidth(parameters, parameters.textWidth, layoutOnly);
// textHeight is heightConstraint.
// In case of CONSTRAINT, the natural size has already been calculated.
// So we can skip Initialize and Update at this stage.
// Only the layout is newly calculated to obtain the height.
- bool layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
+ bool layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
float height = ComputeHeightForWidth(parameters, parameters.textWidth, layoutOnly);
// textHeight is heightConstraint
mIsNaturalSizeTaskRunning = false;
}
break;
-
+
case Text::Async::COMPUTE_HEIGHT_FOR_WIDTH:
{
mIsHeightForWidthTaskRunning = false;
mNaturalSizeTaskId = Text::AsyncTextManager::Get().RequestLoad(parameters, textLoadObserver);
}
break;
-
+
case Text::Async::COMPUTE_HEIGHT_FOR_WIDTH:
{
if(mIsHeightForWidthTaskRunning)