Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
looa committed Aug 6, 2017
1 parent 147b0ea commit 8251247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/org/looa/view/ViewShadow.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void onGlobalLayout() {
}

private static void createShadowIfNecessary(View view, ShadowData data) {
if (data.shadow != null && view.getWidth() != 0) return;
if (view.getWidth() == 0 || data.shadow != null) return;
Log.i(TAG, "View: " + view.getClass().getName() + "\ncreateShadowIfNecessary: is running.\n" + data.toString());
int width = view.getWidth() + data.shadowRadius * 2 + data.dx * 2;
int height = view.getHeight() + data.shadowRadius * 2 + data.dy * 2;
Expand Down

0 comments on commit 8251247

Please sign in to comment.