float indicatorheight = 0.0f;
GET_SHAPE_CONFIG(FORM::INDICATOR_HEIGHT, GetCore().GetOrientation(), indicatorheight);
+ _Indicator* pIndicator = GetCore().GetIndicator();
if (GetCore().HasIndicator())
{
- _Indicator* pIndicator = GetCore().GetIndicator();
if (pIndicator)
{
if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
pIndicator->SetBounds(FloatRectangle(0.0f, 0.0f, GetClientBoundsF().width, indicatorheight));
}
}
- pIndicator->OnChangeLayout(orientation);
GetCore().AdjustClientBounds();
}
+ if (pIndicator)
+ {
+ pIndicator->OnChangeLayout(orientation);
+ }
float adjHeight = 0.0f;
, __pWindow(null)
, __showstate(false)
, __opacity(_INDICATOR_OPACITY_OPAQUE)
+ , __orientation(_CONTROL_ORIENTATION_PORTRAIT)
{
}
}
else if (opacity == _INDICATOR_OPACITY_TRANSLUCENT)
{
- _ControlOrientation orientation = __pWindow->GetOrientation();
-
- if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
+ if (__orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
Color bgColor(0x7f000000);
SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255.0f, (float)bgColor.GetGreen() / 255.0f, (float)bgColor.GetBlue() / 255.0f, (float)bgColor.GetAlpha() / 255.0f));
ChangeCurrentVisualElement(__pLandscapeVisualElement);
SetClipChildrenEnabled(false);
}
+ __orientation = orientation;
SetIndicatorOpacity(__opacity);
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();