I know this old issue but any solution ? I don't want to push the toolbar ( bottom ) when using the keyboard . Regards,
Asked
Active
Viewed 91 times
1 Answers
0
Would it be a solution to catch the focus event of the textfield and setHidden(true) to the bottom tool bar?
Ext.define('App.controller.Form', {
extend: 'Ext.app.Controller',
config: {
refs: {
textField: '.textfield'
},
control: {
textField: {
focus: 'onTextFieldFocus',
blur: 'onTextFieldBlur'
}
}
},
onTextFieldFocus: function () {
Ext.defer(function () {
Ext.Viewport.down('#toolbarToHideOnKeyboardShow').setHidden(true);
}, 50);
},
onTextFieldBlur: function () {
Ext.defer(function () {
Ext.Viewport.down('#toolbarToHideOnKeyboardShow').setHidden(false);
}, 50);
}
});
In this example you could simply add to all bottom toolbars the same itemId and it would always work. If you need this to work on all field types, add those or change it to field.

Dinkheller
- 4,631
- 5
- 39
- 67
-
Actually this is what I have end up with ... so the idea is to hide but if you can event destroy the component that would be better :D ( for performance issue ) – ram mere Sep 25 '14 at 10:28