Comments (3)
I found a quick-fix,
change
//get all list items new height
var item, $item, clone;
for (i = 0, ln = listElms.length; i < ln; i++) {
item = listElms[i];
$item = single(item);
//create clone of item to calculate proper height
clone = $item.clone();
clone.addClass('ag-no-transition');
clone.css('width', colWidth + 'px');
$item.after(clone);
listElmHeights.push(clone[0].offsetHeight);
clone.remove();
}
to
//get all list items new height
var item, $item, clone;
for (i = 0, ln = listElms.length; i < ln; i++) {
item = listElms[i];
$item = single(item);
// ##########################################
//define defaultValues if not set
var reset = {
top:'0px',
lef:'0px'
};
if($item.css('top')==='auto') {
$item.css(reset);
}
// ##########################################
//create clone of item to calculate proper height
clone = $item.clone();
clone.addClass('ag-no-transition');
clone.css('width', colWidth + 'px');
$item.after(clone);
listElmHeights.push(clone[0].offsetHeight);
clone.remove();
}
That looks a little bit better. But it would be great if we have also animations when elements are leaving the array - don't know if there is any event one can hook into.
from angulargrid.
Thanks vollyimnetz, for providing great explanation for your issue.
There is problem with filter, as ng-repeat does not trigger any event when element added or removed (there is scope watch, but will not help with this specific problem), and also it will not wait for the leaving element to complete animation, and removes them from DOM,
I guess the proper solution will be to have custom repeat directive for the plugin, and check for model changes and listen transitionend event, for smooth transition.
I will try experimenting for the solution of this problem, it may take some time as I am quite busy with other projects, but I will try to fix this as soon as possible.
from angulargrid.
Hi vollyimnetz,
Check for the latest commit, It included animation support using ngAnimate module,
Check demo on http://ignitersworld.com/lab/angulargrid/
from angulargrid.
Related Issues (20)
- How can i implement lazy loading in angulargrid?
- Ionic Infinite scroll flickering
- Align rows
- Performant Scroll No Animation
- Infinite Scroll Calculation Wrong when Resizing Browser Window
- Video Tag Not Supported. This issues comes in Mozilla Firebox Browser only. I attached screenshot HOT 1
- Flickering when scrolling page with angulargrid on iOS
- How do I use it with Angular4? HOT 1
- Show custom error image
- User experience not good.
- How to add var App = angular.module('demoApp', ['angularGrid']) in Angular 5
- Add Hooks (onDraw, onResize, onItemAdded, onItemRemoved)
- taking long time , stuck in windows
- hi ! love this module !
- Sorting cards
- Overlapping images
- Overlapping Items
- Usage like angular data grid?
- Implementation with Ionic
- infinityScroll do not work
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 angulargrid.