float contextMenuArrowHeight = 0.0f;
float handlerHeight = 0.0f;
bool isPasswordStyle = false;
+ bool isClipped = false;
if (__pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD)
{
isPasswordStyle = true;
GET_SHAPE_CONFIG(CONTEXTMENU::GRID_BOTTOM_MARGIN, orientation, contextMenuBottomMargin);
GET_SHAPE_CONFIG(CONTEXTMENU::ANCHOR_HEIGHT, orientation, contextMenuArrowHeight);
- if ((__pEdit->GetTextLength() == 0 || __pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD) && !__pEdit->IsClipped())
+ isClipped = __pEdit->IsClipped();
+ if ((__pEdit->GetTextLength() == 0 || __pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD) && !isClipped)
{
return;
}
__contextMenuHeight = contextMenuHeight + contextMenuTopMargin + contextMenuBottomMargin + contextMenuArrowHeight;
- if (__pEdit->IsClipped() == true && __pEdit->IsViewModeEnabled() == false && __pEdit->GetTextLength() > 0 && orientation == _CONTROL_ORIENTATION_PORTRAIT)
+ if (isClipped && __pEdit->IsViewModeEnabled() == false && __pEdit->GetTextLength() > 0 && orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
__contextMenuHeight = __contextMenuHeight + contextMenuHeight;
}
}
}
- if (__pEdit->IsClipped() == true)
+ if (isClipped)
{
if (!__pEdit->IsViewModeEnabled())
{