Comments (14)
Awesome - linked on the DataTables home page - Thanks!
from colresize.
@DataTables Thanks for trying it out! I can't seem to replicate it. What browser are you using? I tried FF and Chrome.
from colresize.
Hah - I've fallen into the trap! That's always the first bit of information I ask for as well.
Chrome 59.0.3071.86 Linux (Fedora 25). I'll try it on a Windows machine later on.
from colresize.
from colresize.
Yup - completely unable to reproduce the issue on Chrome Windows. I'll try Chrome Mac when I get a chance as well. Possibly something odd with the font's available on Linux perhaps...
from colresize.
Works on Mac Chrome and Mac FF for me too. Don't have a linux machine to test it on. Feel free to create a pull request if you find a fix for it
from colresize.
I think I've figured out what is happening - I've just managed to reproduce it on a Mac as well. Its a resize of the table / window that is causing it (I must have shown the dev tools and resized them or something yesterday).
To reproduce, resize the window or show / hide the dev tools, so that the table width changes in the container. The bars will be offset and it gets a little worse as you click and drag them.
Don't you love wishy-washy bug reports... :)
from colresize.
haha, love it :) I still can't reproduce it though :( I can resize the window to my hearts delight and still looks fine to me :) Got any screenshots?
What I have noticed though is that something similar happens (rarely) on refresh. It must be a timing problem that DT is not quite finished yet and ColResize already starts drawing. I assume with your dev console you have cache disabled? This could lead to extra timing issues.
I'm using the init.dt.dtr
event... is there an even later one?
from colresize.
@DataTables managed to replicate it :) Small window size, then enlarge it and bingo!
from colresize.
@DataTables new release, should be fixed now :) Thanks for posting.
from colresize.
Nice one - thanks!
Any chance you could put a live example that folks could load in their browser somewhere (i.e. without needing to npm install it). I'll add it to the DataTables news feed on the home page as I think this is going to be a popular extension.
from colresize.
I will do, I'm just updating the table to allow for scrollY and fixed headers. I've uses the solution I posted in https://github.com/DataTables/DataTables/issues/956. So you can take a look at it for DTv2. Extension uses [].indexOf()
... so it'll run only in IE9+. There is a polyfill though for older browsers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
from colresize.
@DataTables here's your demo: https://smasala.github.io/ColResize/
from colresize.
Thanks
from colresize.
Related Issues (19)
- Change relative column size (percent) HOT 2
- column splitters not in sync with table columns
- scrollY makes table columns crazy
- stateSave: true only saves header widths, but not column width. HOT 4
- How to set ColResize full width? HOT 1
- How to create with tabs? HOT 1
- Memory leak when using with Vue HOT 1
- does not work with boostrap styling HOT 3
- Does not work stably in excess columns HOT 1
- Select all checkbox is selected and automatically removing the selected checkbox while sort option is enabled while using colresize.
- Integrate Col-resize into react data table
- <tfoot> breaks table
- Zoom Scroll causes weird side effects
- Unable to Click on table rows if colResize.scrollY is used HOT 6
- Please add option to disable real-time drag (live drag). HOT 1
- Does it has provision to add fixed width to each column? HOT 1
- Add ability to save column sizes HOT 6
- support for RTL tables HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colresize.