Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added flexability, handles colspans, window.resize event #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chprpipr
Copy link

@chprpipr chprpipr commented Aug 4, 2011

Sorry for the reworked formatting. There are a few nuggets in this check in that I think are worthwhile:

  • Takes colspans into account
  • Clones and hides the original THEAD and TFOOT rather than removing them. This helps to preserve column alignment
  • Inserts TH/TD elements to account for addition of scroll bar (preserves column alignment, particularly if the column is right justified
  • Adds a window.resize event handler to update the table's display if the window changes dimensions.

…eck in that I think are worthwhile:

- Takes colspans into account

- Clones and hides the original THEAD and TFOOT rather than removing them.  This helps to preserve column alignment

- Inserts TH/TD elements to account for addition of scroll bar (preserves column alignment, particularly if the column is right justified

- Adds a window.resize event handler to update the table's display if the window changes dimensions.
@7--
Copy link

7-- commented Aug 2, 2019

I used this version. Only difference I found is that the resizing works when the screen has been minimized and maximized again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants