dimanche 25 mai 2014

autoScroll: true but hide the scrollbar

Similar to the Simple Tasks example in the Sencha Docs examples, we have a form docked at the top of a grid. The form fields on the top match the column lengths of the grid. The problem is that when the grid scrolls horizontally, the docked form does not.

We got around this by using a listener on the grid element scroll and setting the scrollBy() on the docked form. The form now scrolls with the grid scroll. We needed to have autoScroll: true for this to work however and in doing so we have a scrollbar on the grid toolbar.


Is there a way to turn off the scrollbar for this form but still have it scroll when we set the scrollBy()?







Aucun commentaire:

Enregistrer un commentaire