Skip to content

Commit 71d44f1

Browse files
author
imkarl
committed
Fix padding wrong
1 parent 6f86b9c commit 71d44f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

library/src/main/java/cn/imkarl/waitview/WaitViewController.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ public static WaitViewController from(View view) {
3131
height = view.getMeasuredHeight();
3232
}
3333

34-
RectF drawRect = new RectF(view.getPaddingLeft(),
35-
0,
36-
width-view.getPaddingRight(),
37-
height-view.getPaddingBottom()*2);
34+
RectF drawRect = new RectF(0, 0, width-view.getPaddingLeft()-view.getPaddingRight(), height-view.getPaddingTop()-view.getPaddingBottom());
3835
WaitViewController controller = (WaitViewController) view.getTag(R.id.ta_waitview);
3936
if (controller == null) {
4037
controller = new WaitViewController(view, drawRect);

0 commit comments

Comments
 (0)