From 2c2ee3b132ba9bd333a48b4bfe7e1b100a3d232a Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 10 Apr 2022 12:37:25 -0500 Subject: [PATCH] 08.1376 Migration: Tweets previews problems deprecating BlLazyElement by BrAsyncWidget. --- .../TweetsCollection.class/instance/gtTweetsFor..st | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Socialmetrica.package/TweetsCollection.class/instance/gtTweetsFor..st b/Socialmetrica.package/TweetsCollection.class/instance/gtTweetsFor..st index 7226c12..0132c09 100644 --- a/Socialmetrica.package/TweetsCollection.class/instance/gtTweetsFor..st +++ b/Socialmetrica.package/TweetsCollection.class/instance/gtTweetsFor..st @@ -12,5 +12,14 @@ gtTweetsFor: aView c horizontal matchParent ]; padding: (BlInsets all: 10). self tweets do: [ :each | - container addChild: each asCardElement ]. + imageContainer := BrAsyncWidget new + aptitude: BrShadowAptitude new; + background: Color white; + margin: (BlInsets all: 10); + constraintsDo: [ :c | + c vertical exact: 275. + c horizontal exact: 480 ]; + stencil: [ each asCardElement margin: (BlInsets all: 15) ]. + container addChild: imageContainer + ]. container asScrollableElement ] \ No newline at end of file