nativescript-pulltorefresh icon indicating copy to clipboard operation
nativescript-pulltorefresh copied to clipboard

color and backgroundColor property applies to content element GridLayout

Open mehulcs opened this issue 6 years ago • 1 comments

I'm using PullToFresh to wrap GridLayout, Setting color and backgroundColor property, It also applies to GridLayout and its children. My project is Nativescript Vue on android.

mehulcs avatar Jun 26 '19 09:06 mehulcs

I don't know if my problem is related or not. When I use PullToRefresh, the labels disappear. I have to specifically apply text color on each label otherwise they are not visible. It of course works fine if I remove PullToRefresh wrapper.

<PullRefresh:PullToRefresh refresh="refreshList">
	<ListView items="{{ orders }}" itemTap="orderTap">
		<ListView.itemTemplate>
			<StackLayout class="-separator">
				<Label text="{{ product }}" class="font-weight-bold" fontSize="18" /> <!-- not visible -->
				<Label text="{{ sr_no }}" class="text-muted" marginTop="-10" /> <!-- visible because the class has color defined -->
			</StackLayout>
		</ListView.itemTemplate>
	</ListView>
</PullRefresh:PullToRefresh>

Whip avatar Apr 04 '20 07:04 Whip