File tree Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,20 @@ class IframeContentElement extends ReplacedElement {
30
30
return Container (
31
31
width: width ?? (height ?? 150 ) * 2 ,
32
32
height: height ?? (width ?? 300 ) / 2 ,
33
- child: WebView (
34
- initialUrl: src,
35
- key: key,
36
- javascriptMode: sandboxMode == null || sandboxMode == "allow-scripts"
37
- ? JavascriptMode .unrestricted
38
- : JavascriptMode .disabled,
39
- navigationDelegate: navigationDelegate,
40
- gestureRecognizers: {
41
- Factory <VerticalDragGestureRecognizer >(() => VerticalDragGestureRecognizer ())
42
- },
33
+ child: ContainerSpan (
34
+ style: context.style,
35
+ newContext: context,
36
+ child: WebView (
37
+ initialUrl: src,
38
+ key: key,
39
+ javascriptMode: sandboxMode == null || sandboxMode == "allow-scripts"
40
+ ? JavascriptMode .unrestricted
41
+ : JavascriptMode .disabled,
42
+ navigationDelegate: navigationDelegate,
43
+ gestureRecognizers: {
44
+ Factory <VerticalDragGestureRecognizer >(() => VerticalDragGestureRecognizer ())
45
+ },
46
+ ),
43
47
),
44
48
);
45
49
}
Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ class IframeContentElement extends ReplacedElement {
39
39
return Container (
40
40
width: width ?? (height ?? 150 ) * 2 ,
41
41
height: height ?? (width ?? 300 ) / 2 ,
42
- child: Directionality (
43
- textDirection: TextDirection .ltr,
44
- child: HtmlElementView (
45
- viewType: createdViewId,
46
- )
42
+ child: ContainerSpan (
43
+ style: context.style,
44
+ newContext: context,
45
+ child: Directionality (
46
+ textDirection: TextDirection .ltr,
47
+ child: HtmlElementView (
48
+ viewType: createdViewId,
49
+ )
50
+ ),
47
51
)
48
52
);
49
53
}
You can’t perform that action at this time.
0 commit comments