I am showing a data table in jquery mobile using the column toggle button for a responsive design. However, I've also added <div style="overflow:auto">
so that the user is able to scroll horizontally, if they choose to be able to view too many items for the screen (some may argue that this defeats the purpose but this is to display reports so the user may want this feature).
Anyway, my problem is that when the user scrolls horizontally along the table, the data-column-btn
gets moved along with the rest of the table. Is there a way that I can "stick" the button to the top right hand corner, so even as the rest of the table scrolls, the button remains in the same position?
JS Fiddle here: http://jsfiddle.net/LuA8m/
Thanks everyone :)