equal
deleted
inserted
replaced
152 // |
152 // |
153 // ----------------------------------------------------------------------------- |
153 // ----------------------------------------------------------------------------- |
154 // |
154 // |
155 void CWidgetUiWindowContainer::SizeChanged() |
155 void CWidgetUiWindowContainer::SizeChanged() |
156 { |
156 { |
157 TInt offset( 0 ); |
|
158 |
|
159 if( Engine() && (Engine()->Rect() != Rect()) ) |
157 if( Engine() && (Engine()->Rect() != Rect()) ) |
160 { |
158 { |
161 TRect rect( Rect() ); |
159 TRect rect( Rect() ); |
162 //rect.iBr.iY-=offset; |
160 //rect.iBr.iY-=offset; |
163 Engine()->SetRect( rect ); |
161 Engine()->SetRect( rect ); |
289 //Reset the iIsOptionsMenuActivated if enabled |
287 //Reset the iIsOptionsMenuActivated if enabled |
290 iWindowManager.View()->DeActivateOptionsMenu(); |
288 iWindowManager.View()->DeActivateOptionsMenu(); |
291 |
289 |
292 if (Engine()) |
290 if (Engine()) |
293 { |
291 { |
294 TBool showStausPane(EFalse); |
|
295 TBrCtlDefs::TBrCtlElementType eType = Engine()->FocusedElementType(); |
292 TBrCtlDefs::TBrCtlElementType eType = Engine()->FocusedElementType(); |
296 switch(eType) |
293 switch(eType) |
297 { |
294 { |
298 case TBrCtlDefs::EElementInputBox: |
295 case TBrCtlDefs::EElementInputBox: |
299 case TBrCtlDefs::EElementActivatedInputBox: |
296 case TBrCtlDefs::EElementActivatedInputBox: |
300 case TBrCtlDefs::EElementTextAreaBox: |
297 case TBrCtlDefs::EElementTextAreaBox: |
301 // status pane is needed for editing |
|
302 showStausPane = ETrue; |
|
303 // fall through |
|
304 case TBrCtlDefs::EElementObjectBox: |
298 case TBrCtlDefs::EElementObjectBox: |
305 case TBrCtlDefs::EElementActivatedObjectBox: |
299 case TBrCtlDefs::EElementActivatedObjectBox: |
306 { |
300 { |
307 // Status pane must be shown before input is activated because resizing de-activates |
301 // Status pane must be shown before input is activated because resizing de-activates |
308 // the input box. |
302 // the input box. |