Comments (6)
@Syntaf i am get some issue and i add next code for recalculating headers cells width:
$timeout () -> window.dispatchEvent(new Event('resize')) , 0
it trigger resize event for window and call recalc method form lib. It is terrible, but works.
Roman, can you please provide more details, how this method can be used. Your code should be in controller or fixed-table-header.min.js
UPD
$timeout(function() {
$window.dispatchEvent(new Event("resize"));
}, 100);
in controller did the trick
from fixed-table-header.
@zhenya2224 You are right!
In my case, I call $timeout () -> window.dispatchEvent(new Event('resize')) , 0
in controller method, which is toggle some block on the page.
You can use 0 delay $timeout
(only Angular timeout with $), because it was call after repainting.
from fixed-table-header.
I am also facing the same Issue, after the table load the header cell is moved to reposition.
from fixed-table-header.
@Syntaf i am get some issue and i added next code for recalculating headers cells width:
$timeout () -> window.dispatchEvent(new Event('resize')) , 0
it trigger resize event for window and call recalc method form lib. It is terrible, but works
from fixed-table-header.
@zhukovRoman Awesome!
from fixed-table-header.
Roman, I would be grateful for advice or solution, the problem is the header blinks while implementing
$timeout(function() {
$window.dispatchEvent(new Event("resize"));
}, 100);
I made the value 0, it made it worse, it takes more time to recalculate resize event. timeout 100 works, but it creates blinking when page loads.
from fixed-table-header.
Related Issues (20)
- Type error
- Cannot use jQuery resize event to resize on ngShow.
- Doesn't work well with infinite-scroll
- dammage HOT 1
- row headers?
- broken with two <md-content> columns
- disappears when used with ng-repeat HOT 1
- Headings disappear if using ng-if on ancestor element HOT 6
- It deseappear when ised with uib-tabset
- Minimum width for the column HOT 1
- Whole page scrolls when div has height 100%
- Table header cells do not get proper widths on IE11 HOT 14
- Cannot read property '0' of undefined HOT 3
- Error when using some elements inside the fixed header
- Angular 2- 5 support
- overflow: auto causes css rendering issue in chrome
- Cell width and pagination
- Reduce watcher by using ResizeObserver
- RTL Issue
- Not working
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 fixed-table-header.