-
Notifications
You must be signed in to change notification settings - Fork 7
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
Table display compromised in responsive layout #6
Comments
After some thought, I came up with my own workaround: control.find(".best_svm_table").alignColumn([0, 1, 2, 3, 4]);
control.find(".best_svm_table td.hide_tablet").next().addClass("hide_tablet");
control.find(".best_svm_table td.hide_mobile").next().addClass("hide_mobile"); I.e. find all tr-elements in the tables with either class It's neither pretty nor perfect, but it's just two lines of code, so I can live with it. Hence, a fix for this within the plugin is not a pressing matter any more. But I do wonder, is this something that can be fixed more generally within the plugin itself? Would like to hear your views on this. |
I'll close this issue now because my own workaround has proven itself over time. I hope it is of use to anyone running into the same problem. |
I'm sorry. I accidently had turned off all my notifications to github issues, and am just now catching up. This seems like a real issue and I can do what you are suggesting-- at least as on option. More to come. |
OK, fine with me! |
Hi there,
I have an issue with the usage of
align-column
within a responsive layout.I have a table defined as follows:
This is in a responsive layout. The classes
hide_tablet
andhide_mobile
serve to hide given columns when the screen width drops below a certain threshold value. This worked fine before I addedalign-column
.After the table has been created and filled, I run:
This converts the previous HTML-table to the following:
What is apparent, is that any cells with numbers in them are split into two cells, with extra style info for each. This works just fine in the large screen width, but as the width is decreased, the layout goes awry.
The thing here is that the added cells, marked with
class="added"
do not inherit the class used by the responsive layout. I.e., in order for the responsive layout to work, the sixth column of the second row in the previous code block should have read:My request is: is it possible for the added column to inherit the original classes for a given column as well? Perhaps there's an overriding reason not to implement this, in which case I would appreciate a suggestion for a workaround.
Thanks.
The text was updated successfully, but these errors were encountered: