I have PagingToolbar as bbar of my grid. When tooltip shows up, it renders below my visible screen and that is why vertical scroll shows up, but when it does the vertical scroll takes some place of the viewport so automatically horizontal scroll also shows up overflowing the tooltip. So basically i have 2 questions.
The vertical scrolls shows for whole viewport, but grid with bbar is in south region only and grid has already vertical scroll itself. Is there some kind of config to control that behaviour?
How to disable tooltips for PagingToolbar i have following code which is not working (grid definition, removed irrelevant) .
initComponent: function() { var me = this; this.store = 'DevPlan'; var paging = Ext.create('Ext.PagingToolbar', { store: this.store, displayInfo: true, displayMsg: 'Wyświetlono wnioski {0} - {1} z {2}', emptyMsg: "Brak wniosków do wyświetlenia" }); Ext.each(paging.items.items, function(btn) { if (btn.getXType() == 'button' && btn.tooltip != undefined) { Ext.QuickTips.unregister(btn.getId()); } }); this.bbar = paging; this.callParent(arguments);
I think maybe the above code is not working because tooltips were not registered yet or bacause the paging toolbar has not been rendered so i tried:
afterRender:function() { this.callParent(); var items = this.bbar.items.items; Ext.each(items, function(btn) { if (btn.getXType() == 'button' && btn.tooltip != undefined) { console.log(btn.getId()); Ext.QuickTips.unregister(btn.getId()); } }); }
but in this code i get this.bbar is undefined. Why? So when is bbar rendered?
autoscroll:false
in your viewport – MMTeach
section after the call tocallParent
in yourinitComponent()
method. – Izhaki