Gaëtan Renaudeau 8 年之前
父節點
當前提交
6f631dedff
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      android/src/main/java/fr/greweb/reactnativeviewshot/ViewShot.java

+ 0
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/ViewShot.java 查看文件

@@ -117,7 +117,6 @@ public class ViewShot implements UIBlock {
117 117
         }
118 118
         Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);
119 119
         Canvas c = new Canvas(bitmap);
120
-        view.layout(0, 0, view.getLayoutParams().width, view.getLayoutParams().height);
121 120
         view.draw(c);
122 121
 
123 122
         if (width != null && height != null && (width != w || height != h)) {