equal
deleted
inserted
replaced
758 else |
758 else |
759 { |
759 { |
760 iMessageEditorMinHeigth = messageLineHeigth; |
760 iMessageEditorMinHeigth = messageLineHeigth; |
761 } |
761 } |
762 |
762 |
|
763 UpdateFieldPosition( NULL ); |
|
764 |
763 TRAP_IGNORE( UpdateScrollBarL() ); |
765 TRAP_IGNORE( UpdateScrollBarL() ); |
764 DrawNow(); |
766 DrawNow(); |
765 |
767 |
766 } |
768 } |
767 // </cmail> Platform layout changes |
769 // </cmail> Platform layout changes |
1098 // |
1100 // |
1099 void CNcsComposeViewContainer::AddQuickTextL( const TDesC& aText ) |
1101 void CNcsComposeViewContainer::AddQuickTextL( const TDesC& aText ) |
1100 { |
1102 { |
1101 FUNC_LOG; |
1103 FUNC_LOG; |
1102 |
1104 |
|
1105 // If in 'To' field, go to msg. field |
|
1106 if(!iMessageField->IsFocused()) |
|
1107 { |
|
1108 SetFocusToMessageFieldL(); |
|
1109 } |
1103 TInt pos = iMessageField->CursorPos(); |
1110 TInt pos = iMessageField->CursorPos(); |
1104 TCursorSelection selIns( pos, pos ); |
1111 TCursorSelection selIns( pos, pos ); |
1105 iMessageField->InsertDeleteCharsL( pos, aText, selIns ); |
1112 iMessageField->InsertDeleteCharsL( pos, aText, selIns ); |
|
1113 //Fix for error EFTG-7Y63XG, moving cursor to the end of inserted text |
|
1114 pos += aText.Length(); |
|
1115 iMessageField->SetCursorPosL(pos,EFalse); |
1106 DrawDeferred(); |
1116 DrawDeferred(); |
1107 |
1117 |
1108 } |
1118 } |
1109 |
1119 |
1110 // ----------------------------------------------------------------------------- |
1120 // ----------------------------------------------------------------------------- |
1760 // ----------------------------------------------------------------------------- |
1770 // ----------------------------------------------------------------------------- |
1761 // |
1771 // |
1762 void CNcsComposeViewContainer::HandleLayoutChangeL() |
1772 void CNcsComposeViewContainer::HandleLayoutChangeL() |
1763 { |
1773 { |
1764 FUNC_LOG; |
1774 FUNC_LOG; |
1765 // <cmail> Platform layout change |
1775 TRect rect = iView.ClientRect(); |
1766 const TRect rect( NcsUtility::ListscrollPaneRect() ); |
|
1767 SetRect( rect ); |
1776 SetRect( rect ); |
1768 // </cmail> Platform layout change |
|
1769 if ( iHeader ) |
1777 if ( iHeader ) |
1770 { |
1778 { |
1771 iHeader->HandleDynamicVariantSwitchL(); |
1779 iHeader->HandleDynamicVariantSwitchL(); |
1772 } |
1780 } |
1773 // <cmail> Platform layout change |
|
1774 //TRect rect = iView.ClientRect(); |
|
1775 //SetApplicationRect( rect ); |
|
1776 //SetRect( rect ); |
|
1777 //UpdateScreenPositionL(); |
|
1778 // </cmail> Platform layout change |
|
1779 UpdateScrollBarL(); |
1781 UpdateScrollBarL(); |
1780 } |
1782 } |
1781 |
1783 |
1782 // ----------------------------------------------------------------------------- |
1784 // ----------------------------------------------------------------------------- |
1783 // CNcsComposeViewContainer::HandleSkinChangeL |
1785 // CNcsComposeViewContainer::HandleSkinChangeL |