Skip to content

Commit

Permalink
Only apply IFRAME width & height if it has both attributes (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson authored May 9, 2024
1 parent a5d161e commit f3125f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/fwfh_webview/lib/src/web_view_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ mixin WebViewFactory on WidgetFactory {
'min-width': '0px',
'min-height': '0px',
'width': 'auto',
if (height != null) 'height': '${height}px',
if (width != null) 'width': '${width}px',
if (height != null && width != null) ...{
'height': '${height}px',
'width': '${width}px',
},
};
},
onWidgets: (meta, widgets) {
Expand Down

1 comment on commit f3125f5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.