, __isCursorInitialized(false)
, __isCursorDisabled(false)
, __isInitialized(false)
+ , __isInitializing(false)
, __isMovingCursorByTouchMove(false)
, __isTouchMoving(false)
, __isTouchPressed(false)
{
result r = E_SUCCESS;
+ __isInitializing = true;
+
Resize();
InitializeParentPanel();
float maxHeight = CalculateMaximumFlexibleHeight();
- if (expectedEditHeight >= maxHeight)
+ //If InitialBounds is more than expectedEdit height, set flexible height as initial height
+ if (expectedEditHeight < __initialBounds.height)
{
- height = maxHeight;
+ height = __initialBounds.height;
}
- else if (expectedEditHeight < __initialBounds.height)
+ else if (expectedEditHeight >= maxHeight)
{
- height = __initialBounds.height;
+ height = maxHeight;
}
else
{
{
result r = E_SUCCESS;
+ if (!__isInitializing)
+ {
+ return E_SUCCESS;
+ }
+
_ExpandableEditAreaEventStatus expandableEditAreaStatus = _EXPANDABLE_EDITAREA_EVENT_ADDED;
if (__pEdit->GetBounds().height > bounds.height)
{
{
result r = E_SUCCESS;
+ if (!__isInitializing)
+ {
+ return E_SUCCESS;
+ }
+
_ExpandableEditAreaEventStatus expandableEditAreaStatus = _EXPANDABLE_EDITAREA_EVENT_ADDED;
if (__pEdit->GetBoundsF().height > bounds.height)
{