mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup reexports
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { StackLayoutBase, View, layout, VerticalAlignment, HorizontalAlignment } from "./stack-layout-common";
|
||||
import * as trace from "../../../trace";
|
||||
import { StackLayoutBase } from "./stack-layout-common";
|
||||
import { View } from "../../core/view";
|
||||
import { VerticalAlignment, HorizontalAlignment } from "../../styling/style-properties";
|
||||
import { layout } from "../../../utils/utils";
|
||||
import { Trace } from "../../../trace";
|
||||
|
||||
export * from "./stack-layout-common";
|
||||
|
||||
@@ -59,7 +62,7 @@ export class StackLayout extends StackLayoutBase {
|
||||
childSize = View.measureChild(this, child, childMeasureSpec, layout.makeMeasureSpec(remainingLength, measureSpec));
|
||||
|
||||
if (measureSpec === layout.AT_MOST && this.isUnsizedScrollableView(child)) {
|
||||
trace.write("Avoid using ListView or ScrollView with no explicit height set inside StackLayout. Doing so might result in poor user interface performance and poor user experience.", trace.categories.Layout, trace.messageType.warn);
|
||||
Trace.write("Avoid using ListView or ScrollView with no explicit height set inside StackLayout. Doing so might result in poor user interface performance and poor user experience.", Trace.categories.Layout, Trace.messageType.warn);
|
||||
}
|
||||
|
||||
measureWidth = Math.max(measureWidth, childSize.measuredWidth);
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "stack-layout",
|
||||
"main": "stack-layout",
|
||||
"types": "stack-layout.d.ts"
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
import { StackLayout as StackLayoutDefinition, Orientation } from ".";
|
||||
import { LayoutBase, Property, isIOS, makeValidator, makeParser, CSSType } from "../layout-base";
|
||||
|
||||
export * from "../layout-base";
|
||||
import { LayoutBase } from "../layout-base";
|
||||
import { CSSType } from "../../core/view";
|
||||
import { Property, makeParser, makeValidator } from "../../core/properties";
|
||||
import { isIOS } from "../../../platform";
|
||||
|
||||
@CSSType("StackLayout")
|
||||
export class StackLayoutBase extends LayoutBase implements StackLayoutDefinition {
|
||||
|
||||
Reference in New Issue
Block a user