mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Call resetCSSProperties instead of resetStyleProperties from _resetCssValues
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "tns-samples-apps",
|
||||
"main": "cuteness.io/app.js"
|
||||
"main": "ui-tests-app/app.js"
|
||||
}
|
||||
|
1
tns-core-modules/ui/definitions.d.ts
vendored
1
tns-core-modules/ui/definitions.d.ts
vendored
@ -256,6 +256,7 @@ declare module "ui/core/properties" {
|
||||
|
||||
export function applyNativeSetters(view: ViewBase): void;
|
||||
export function resetStyleProperties(style: Style): void;
|
||||
export function resetCSSProperties(style: Style): void;
|
||||
|
||||
export function makeValidator<T>(...values: T[]): (value: any) => value is T;
|
||||
export function makeParser<T>(isValid: (value: any) => boolean, def: T): (value: any) => T;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Page as PageDefinition, NavigatedData, ShownModallyData } from "ui/page";
|
||||
import {
|
||||
ContentView, View, backgroundColorProperty,
|
||||
eachDescendant, Property, Color, isIOS, booleanConverter, resetStyleProperties
|
||||
eachDescendant, Property, Color, isIOS, booleanConverter, resetCSSProperties
|
||||
} from "ui/content-view";
|
||||
import { Frame, topmost as topmostFrame, resolvePageFromEntry } from "ui/frame";
|
||||
import { ActionBar } from "ui/action-bar";
|
||||
@ -282,7 +282,7 @@ export class PageBase extends ContentView implements PageDefinition {
|
||||
private _resetCssValues() {
|
||||
const resetCssValuesFunc = (view: View): boolean => {
|
||||
view._cancelAllAnimations();
|
||||
resetStyleProperties(view.style);
|
||||
resetCSSProperties(view.style);
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user