SetTouchPressThreshold(SENSITIVE);
+ if (!_FloatCompare(__itemHeight, 0.0f))
+ {
+ SetAccessibilityElement();
+ }
+
return r;
CATCH:
FloatRectangle bounds = GetBoundsF();
__pBitmapVisualElement->SetBounds(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height));
}
+
+ if(__pAccessibilityElement != null)
+ {
+ __pAccessibilityElement->SetBounds(FloatRectangle(0.0f,0.0f, GetBoundsF().width, GetBoundsF().height));
+ }
}
void
result
_TableViewItem::OnAttachedToMainTree(void)
{
- result r = E_SUCCESS;
-
if (!_FloatCompare(GetBoundsF().height, 0.0f))
{
SetAccessibilityElement();
}
- return r;
+ return E_SUCCESS;
}
void
_TableViewItem::SetAccessibilityElement(void)
{
- if(__pAccessibilityElement)
- {
- return ;
- }
-
_AccessibilityContainer* pContainer = GetAccessibilityContainer();
- if(pContainer)
+ if(pContainer != null)
{
- __pAccessibilityElement = new (std::nothrow) _AccessibilityElement(true);
- SysTryReturnVoidResult(NID_UI_CTRL, __pAccessibilityElement, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage.");
+ if(__pAccessibilityElement == null)
+ {
+ __pAccessibilityElement = new (std::nothrow) _AccessibilityElement(true);
+ SysTryReturnVoidResult(NID_UI_CTRL, __pAccessibilityElement, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage.");
- FloatRectangle accessibilityRect(0.0f,0.0f, GetBoundsF().width, GetBoundsF().height);
- __pAccessibilityElement->SetBounds(_CoordinateSystemUtils::ConvertToInteger(accessibilityRect)); // +++ check floating
- __pAccessibilityElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
- __pAccessibilityElement->SetName(L"TableViewItem");
+ __pAccessibilityElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
+ __pAccessibilityElement->SetName(L"TableViewItem");
- pContainer->AddElement(*__pAccessibilityElement);
+ pContainer->AddElement(*__pAccessibilityElement);
+ }
+ __pAccessibilityElement->SetBounds(FloatRectangle(0.0f,0.0f, GetBoundsF().width, GetBoundsF().height));
}
}