mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed: Custom components within other custom components: occasionally not loaded "in time" and ignoring css
Resolves #1639
This commit is contained in:
4
apps/app/ui-tests-app/issues/component/customView.css
Normal file
4
apps/app/ui-tests-app/issues/component/customView.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.local-green {
|
||||
color: green;
|
||||
margin-left: 10;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<StackLayout xmlns:cC2="/ui-tests-app/issues/component2">
|
||||
<Label class="ui-tests-app-issue-1639-green" text="customView green" textWrap="true" />
|
||||
<StackLayout xmlns:cC2="/ui-tests-app/issues/component2" style.borderWidth="1" style.borderColor="black">
|
||||
<Label class="ui-tests-app-issue-1639-green" text="customView green from app.css" textWrap="true" />
|
||||
<Label class="local-green" text="customView green from customView.css" textWrap="true" />
|
||||
<cC2:customView2/>
|
||||
</StackLayout>
|
||||
4
apps/app/ui-tests-app/issues/component2/customView2.css
Normal file
4
apps/app/ui-tests-app/issues/component2/customView2.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.local-blue {
|
||||
color: blue;
|
||||
margin-left: 20;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<StackLayout xmlns:cC3="/ui-tests-app/issues/component3">
|
||||
<Label class="ui-tests-app-issue-1639-blue" text="customView2 blue" textWrap="true" />
|
||||
<StackLayout xmlns:cC3="/ui-tests-app/issues/component3" style.borderWidth="1" style.borderColor="black">
|
||||
<Label class="ui-tests-app-issue-1639-blue" text="customView2 blue from app.css" textWrap="true" />
|
||||
<Label class="local-blue" text="customView2 blue from customView2.css" textWrap="true" />
|
||||
<cC3:customView3/>
|
||||
</StackLayout>
|
||||
|
||||
4
apps/app/ui-tests-app/issues/component3/customView3.css
Normal file
4
apps/app/ui-tests-app/issues/component3/customView3.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.local-yellow {
|
||||
color: yellow;
|
||||
margin-left: 30;
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
<StackLayout>
|
||||
<Label class="ui-tests-app-issue-1639-yellow" text="customView3 yellow" textWrap="true" />
|
||||
<StackLayout style.borderWidth="1" style.borderColor="black">
|
||||
<Label class="ui-tests-app-issue-1639-yellow" text="customView3 yellow from app.css" textWrap="true" />
|
||||
<Label class="local-yellow" text="customView3 yellow from customView3.css" textWrap="true" />
|
||||
</StackLayout>
|
||||
|
||||
4
apps/app/ui-tests-app/issues/issue-1639.css
Normal file
4
apps/app/ui-tests-app/issues/issue-1639.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.local-red {
|
||||
color: red;
|
||||
margin-left: 0;
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:cC="ui-tests-app/issues/component">
|
||||
<StackLayout>
|
||||
<Label class="ui-tests-app-issue-1639-red" text="main-page red" textWrap="true" />
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:cC="ui-tests-app/issues/component" id="main-page">
|
||||
<StackLayout style.borderWidth="1" style.borderColor="black">
|
||||
<Label class="ui-tests-app-issue-1639-red" text="main-page red from app.css" textWrap="true" />
|
||||
<Label class="local-red" text="main-page red from issue-1639.css" textWrap="true" />
|
||||
<cC:customView/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user