mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
Style(item-group): Fix spacing for code
This commit is contained in:
@ -85,7 +85,7 @@ export class ItemGroupTitle {
|
|||||||
if (element.style[CSS.transform] == transformString) {
|
if (element.style[CSS.transform] == transformString) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
element.style[CSS.transform] = transformString;
|
element.style[CSS.transform] = transformString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,12 +94,12 @@ export class ItemGroupTitle {
|
|||||||
// if immediate execution is requested, then just execute immediately
|
// if immediate execution is requested, then just execute immediately
|
||||||
// if not, execute in the animation frame.
|
// if not, execute in the animation frame.
|
||||||
if (executeImmediately) {
|
if (executeImmediately) {
|
||||||
this.applyTransform(element, translateDyPixelsUp);
|
this.applyTransform(element, translateDyPixelsUp);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// see http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
|
// see http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
|
||||||
// see http://ionicframework.com/docs/api/utility/ionic.DomUtil/
|
// see http://ionicframework.com/docs/api/utility/ionic.DomUtil/
|
||||||
requestAnimationFrame( a => this.applyTransform(element, translateDyPixelsUp) );
|
requestAnimationFrame( a => this.applyTransform(element, translateDyPixelsUp) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,10 +122,10 @@ export class ItemGroupTitle {
|
|||||||
// if you want to experiment, always use the throttled one and just click on the page
|
// if you want to experiment, always use the throttled one and just click on the page
|
||||||
// you will see all affix elements stacked on top
|
// you will see all affix elements stacked on top
|
||||||
if (scrollTop == 0) {
|
if (scrollTop == 0) {
|
||||||
this.calculateScrollLimits(scrollTop);
|
this.calculateScrollLimits(scrollTop);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.throttledCalculateScrollLimits(scrollTop);
|
this.throttledCalculateScrollLimits(scrollTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
// when we scrolled to the container, create the clone of element and place it on top
|
// when we scrolled to the container, create the clone of element and place it on top
|
||||||
@ -136,9 +136,9 @@ export class ItemGroupTitle {
|
|||||||
var cloneCreatedJustNow = false;
|
var cloneCreatedJustNow = false;
|
||||||
|
|
||||||
if (!this.affixClone) {
|
if (!this.affixClone) {
|
||||||
this.affixClone = this.createAffixClone();
|
this.affixClone = this.createAffixClone();
|
||||||
cloneCreatedJustNow = true;
|
cloneCreatedJustNow = true;
|
||||||
this.isSticking = true;
|
this.isSticking = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we're reaching towards the end of the container, apply some nice translation to move up/down the clone
|
// if we're reaching towards the end of the container, apply some nice translation to move up/down the clone
|
||||||
|
Reference in New Issue
Block a user