TP: fixes table headers in cdn snapshot view#3952
Conversation
|
Refer to this link for build results (access rights to CI server needed): |
ocket8888
left a comment
There was a problem hiding this comment.
Table headers are still incorrect when the tab is first loaded; if you click on a different tab and then the one you were just on again, then it's fixed. But again, still wrong on initial load.
|
Refer to this link for build results (access rights to CI server needed): |
try now. not very proud of this hack but seems to work for me in chrome and firefox. |
…k with object values
|
Refer to this link for build results (access rights to CI server needed): |
|
Refer to this link for build results (access rights to CI server needed): |
|
I don't generally like using scripts to fix styling; styling should fix styling. What's wrong with: div.dataTables_scrollHeadInner {
width: 100% !important;
}? |
I can give it a shot. I was under the impression this bug was due to the datatables not being visible because they are hidden inside of tabs. |
|
hm... I guess it's setting the widths explicitly, but just doing it wrong and never updating it. jQuery libraries..... Anyway, the little hiccup the page does when using a script to fix it is annoying, but if the CSS can't work properly I guess we've got no choice but to live with it until we eventually switch to Angular 7. |
ocket8888
left a comment
There was a problem hiding this comment.
tests pass, fixes the issue, no _.js dependency 👍

What does this PR (Pull Request) do?
On the CDN snapshot view page, this change adjusts column headers when tab is selected and data table is visible to ensure the table header widths are correct.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Verifying the widths of column headers depends on the user's window size so can't think of a way to test this programatically.
Documentation is already correct.
No need for a change log entry
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR