+ and - signs not centering in circle
+ and - signs not centering in circle
csquare
Posts: 9Questions: 2Answers: 0
just installed latest dataTable responsive version 2.0.0. + and - signs in green and red circles are not centered but show at the right bottom in these circles. Any idea how to fix this?
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Screenshot? Code? Details? Steps to replicate?.... Anything at all?...
/FacePalm
Hi,
Surprisingly, getting the + and - signs to align correctly in Responsive 2 was one of the hardest parts of its development! I thought I had it nailed, but it is quite possible that there is something going wrong somewhere.
We would need the following information to be able to offer any help:
Thanks,
Allan
Allan and jLinux, Thanks for the comments. Here is requested info:
Screenshot - I would love to post one here but when I do post for screenshot image, nothing is posting here. I am assuming this site is text only and does not support image posting??? Can I email you a screenshot if that helps??
Code: here is portion of the code on viewsource for the table. Green collapse button appears in the first column (th) before the checkbox.
Here is code for how I am initializing dataTable:
Hope you can help.
Thanks,
This is correct. You could use picpaste or similar to post images.
It looks like that is what is causing the issue. At least if add the style to this example it is knocked out of alignment.
I've just committed the fix and this will be propagated to the nightly builds in the next couple of minutes.
Allan
Thanks Allan. Here is screen shot link
http://picpaste.com/Untitled-mubjSEfH.png
Yes you are correct that text-align: center is causing it. I tested my code after removing it and then + sign gets centered.
So I assume all I need to do it to download responsive.dataTables.min.css & dataTables.responsive.min.js after nightly build and that should fix the issue. Let me know.
Thanks,
Just the CSS. No change in the Javascript (other than to bump the version number on).
Allan
Allan, I downloaded new responsive.dataTables.min.css but problem still not fixed. Did the updates happen in this file?
Thanks,
When you say the "new" files - which ones? Can you link to the page showing the issue so I can debug it please.
New files - I downloaded responsive.dataTables.min.css from dataTables sites assuming it was updated to handle text-align: center as per our discussion above.
link to the page: http://test.getcompanysquare.com/Account/LogOn (login using r@r.com / square123). Go to Invoice tab on the left and then click invoice. You will see invoice list table which will become responsive when you reduce screen size.
It doesn't look like the Responsive CSS on your page has the fix. Can you try using this file which does.
Allan
So can you tell me which file I should download from http://datatables.net/download/index
site? I would rather download the updated new file than copy/pasting patches of code which may not be a good practice.
code you sent does fix the issues.
fyi - this code is not there on http://datatables.net/download/index site yet.
Thanks,
No - it hasn't been released. It is in the nightly which I linked to above.
Allan