Explorar el Código

prevent negative webview height in scaffold

VeryApt hace 7 años
padre
commit
5d70aa4b53
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      lib/src/webview_scaffold.dart

+ 2 - 0
lib/src/webview_scaffold.dart

@@ -112,6 +112,8 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
       }
     }
 
+    if (height < 0.0) height = 0.0;
+
     return new Rect.fromLTWH(0.0, top, mediaQuery.size.width, height);
   }
 }