EvHaus / doby-grid

An HTML table element on steroids.
Other
14 stars 5 forks source link

Don't overlay sort indicators over header text #105

Open ckosmowski opened 10 years ago

ckosmowski commented 10 years ago

In our old approach with SlickGrid we managed to have the sort indicators not overlay the header text. Even when the column is beeing resized to its minWidth.

There are two approaches for this:

1.)

2.)

We prefer the second one.

What do you think about it? Resizing the column when sorting seems okay to me because it doesn't happen every few seconds.

EvHaus commented 10 years ago

Solution #1 is already in place. The current minWidth accounts for the size of the default sort indicator.

Solution #2 is fine, but we'll also need to do this at grid initialization in case a grid is initialized with sorting already enabled.