equal
deleted
inserted
replaced
594 CalculateNumberOfScreens(); |
594 CalculateNumberOfScreens(); |
595 if (oldNoOfLines != iNoOfEditorLines && IsActivated() ) |
595 if (oldNoOfLines != iNoOfEditorLines && IsActivated() ) |
596 { |
596 { |
597 ClearArea( Rect() ); |
597 ClearArea( Rect() ); |
598 UpdateScrollIndicatorL(); |
598 UpdateScrollIndicatorL(); |
599 // if iNoOfEditorLines becomes small, firstly calculate the New PopupForm layout. |
|
600 // Because position of PopupForm is related to last PoppupForm layout. |
|
601 if ( iNoOfEditorLines < oldNoOfLines ) |
|
602 { |
|
603 TSize size; |
|
604 if ( !AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, size ) ) |
|
605 { |
|
606 size = iCoeEnv->ScreenDevice()->SizeInPixels() ; |
|
607 } |
|
608 SetSizeAndPosition( PreferredSize( size ) ); |
|
609 } |
|
610 LayoutAndDraw(); |
599 LayoutAndDraw(); |
611 } |
600 } |
612 else if ( IsActivated() ) |
601 else if ( IsActivated() ) |
613 { |
602 { |
614 ClearArea( ed->Rect() ); |
603 ClearArea( ed->Rect() ); |
2345 |
2334 |
2346 |
2335 |
2347 UpdateFlags( ctrlType, ETrue ); |
2336 UpdateFlags( ctrlType, ETrue ); |
2348 |
2337 |
2349 CalculateNumberOfScreens(); |
2338 CalculateNumberOfScreens(); |
2350 // because of insert a control, iNoOfEditorLines of editor become small, |
|
2351 // but position is calculated by previous size of editor, |
|
2352 // So firstly calculate editor layout. |
|
2353 TSize size; |
|
2354 if ( !AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, size ) ) |
|
2355 { |
|
2356 size = iCoeEnv->ScreenDevice()->SizeInPixels() ; |
|
2357 } |
|
2358 SetSizeAndPosition( PreferredSize( size ) ); |
|
2359 LayoutAndDraw(); |
2339 LayoutAndDraw(); |
2360 UpdateScrollIndicatorL(); |
2340 UpdateScrollIndicatorL(); |
2361 |
2341 |
2362 if( ctrl->iControlType == EAknCtBitmapAnimation && IsActivated() ) |
2342 if( ctrl->iControlType == EAknCtBitmapAnimation && IsActivated() ) |
2363 { |
2343 { |