GetEcoreEvasMgr()->GetEcoreEvas()->SetWindowBounds(*this, GetBoundsF());
- SetAllAccessibilityElement();
-
_VisualElement* pVisualElement = GetVisualElement();
FloatRectangle pBounds = pVisualElement->GetBounds();
float oldBoundsX = pBounds.x;
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
AdjustItemPosition();
+ SetAllAccessibilityElement();
return r;
}
pElementContextMenu->SetTraitWithStringId("IDS_TPLATFORM_BODY_CONTEXTUAL_POP_UP_T_TTS");
pElementContextMenu->SetHintWithStringId("IDS_TPLATFORM_BODY_CONTEXTUAL_POP_UP_IS_OPEN_DOUBLE_TAP_TO_CLOSE_THE_POP_UP_T_TTS");
- pElementContextMenu->SetBounds(FloatRectangle(0.0f, 0.0f, __pContextMenu->GetBoundsF().width, __pContextMenu->GetBoundsF().height));
+ pElementContextMenu->SetBounds(FloatRectangle(__pContextMenu->GetItemRect().x, __pContextMenu->GetItemRect().y, __pContextMenu->GetItemRect().width, __pContextMenu->GetItemRect().height));
pContainer->AddElement(*pElementContextMenu);
__pContextMenu->AddAccessibilityElement(*pElementContextMenu);
{
result r = CalculateRect();
AdjustItemPosition();
+ SetAllAccessibilityElement();
return r;
}
void
_ContextMenuListPresenter::SetAllAccessibilityElement(void)
{
+ int scrollPanelMargin;
+ GET_SHAPE_CONFIG(CONTEXTMENU::SCROLL_PANEL_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, scrollPanelMargin);
+
_AccessibilityContainer* pContainerContextMenu = __pContextMenu->GetAccessibilityContainer();
if (pContainerContextMenu != null)
{
pElementContextMenu->SetSupportOperatingGesture(false);
pElementContextMenu->SetTraitWithStringId("IDS_TPLATFORM_BODY_CONTEXTUAL_POP_UP_T_TTS");
pElementContextMenu->SetHintWithStringId("IDS_TPLATFORM_BODY_CONTEXTUAL_POP_UP_IS_OPEN_DOUBLE_TAP_TO_CLOSE_THE_POP_UP_T_TTS");
- pElementContextMenu->SetBounds(FloatRectangle(0.0f, 0.0f, __pContextMenu->GetBoundsF().width, __pContextMenu->GetBoundsF().height));
+ pElementContextMenu->SetBounds(FloatRectangle(__pContextMenu->GetItemRect().x, __pContextMenu->GetItemRect().y - scrollPanelMargin, __pContextMenu->GetItemRect().width, __pContextMenu->GetItemRect().height + 2 * scrollPanelMargin));
pContainerContextMenu->AddElement(*pElementContextMenu);
__pContextMenu->AddAccessibilityElement(*pElementContextMenu);
GetEcoreEvasMgr()->GetEcoreEvas()->SetWindowBounds(*this, GetBoundsF());
- SetAllAccessibilityElement();
-
OpenAnimation();
return _Window::OnAttachedToMainTree();
{
result r = CalculateRect();
AdjustItemPosition();
+ __pOptionMenu->SetAllAccessibilityElement();
return r;
}
void
_OptionMenuPresenter::SetAllAccessibilityElement(void)
{
+ int scrollPanelMargin;
+ GET_SHAPE_CONFIG(CONTEXTMENU::SCROLL_PANEL_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, scrollPanelMargin);
+
_AccessibilityContainer* pContainerOptionMenu = __pOptionMenu->GetAccessibilityContainer();
if (pContainerOptionMenu != null)
{
pElementOptionMenu->SetSupportOperatingGesture(false);
//pElementOptionMenu->SetTraitWithStringId("IDS_TPLATFORM_BODY_CONTEXTUAL_POP_UP_T_TTS");
pElementOptionMenu->SetHintWithStringId("IDS_TPLATFORM_BODY_CONTEXTUAL_POP_UP_IS_OPEN_DOUBLE_TAP_TO_CLOSE_THE_POP_UP_T_TTS");
- pElementOptionMenu->SetBounds(FloatRectangle(0.0f, 0.0f, __pOptionMenu->GetBoundsF().width, __pOptionMenu->GetBoundsF().height));
+ pElementOptionMenu->SetBounds(FloatRectangle(__pOptionMenu->GetItemRect().x, __pOptionMenu->GetItemRect().y - scrollPanelMargin, __pOptionMenu->GetItemRect().width, __pOptionMenu->GetItemRect().height + 2* scrollPanelMargin));
pContainerOptionMenu->AddElement(*pElementOptionMenu);
__pOptionMenu->AddAccessibilityElement(*pElementOptionMenu);
Tizen::Ui::_AccessibilityElement* GetAccessibilityElement(const int mainIndex) const;
void AddAccessibilityElement(const _AccessibilityElement& element);
+ void SetAllAccessibilityElement(void);
_ContextMenuItemInfo GetItemFromPosition(const Tizen::Graphics::FloatPoint& position) const;
_ContextMenuItemInfo FindItem(int index) const;
result LoadBitmap(void);
result LoadColorReplacedBitmap(const Tizen::Graphics::Color& color);
void AdjustDropPosition(void);
- void SetAllAccessibilityElement(void);
void RemoveAllAccessibilityElement(void);
private:
Tizen::Ui::_AccessibilityElement* GetAccessibilityElement(const int mainIndex) const;
void AddAccessibilityElement(const _AccessibilityElement& element);
+ void SetAllAccessibilityElement(void);
_OptionMenuItemInfo GetItemFromPosition(const Tizen::Graphics::FloatPoint& position) const;
_OptionMenuItemInfo FindItem(int index) const;
private:
result LoadBitmap(void);
result LoadColorReplacedBitmap(const Tizen::Graphics::Color& color);
- void SetAllAccessibilityElement(void);
void RemoveAllAccessibilityElement(void);
_OptionMenu(const _OptionMenu& rhs);