Skip to content

Commit

Permalink
fix PopupWindow wrong arrow position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiz committed Oct 27, 2016
1 parent 85616ed commit cb41758
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ allprojects {
}
```

Add `compile 'com.github.cpiz:BubbleView:0.9.6'` to your module-level `build.gradle`
Add `compile 'com.github.cpiz:BubbleView:{X.X.X}'` to your module-level `build.gradle`
```
dependencies {
...
compile 'com.github.cpiz:BubbleView:0.9.6'
compile 'com.github.cpiz:BubbleView:{X.X.X}'
}
```

Expand Down
4 changes: 2 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ allprojects {
}
```

在模块目录的 `build.gradle` 中增加 `compile 'com.github.cpiz:BubbleView:0.9.6'`
在模块目录的 `build.gradle` 中增加 `compile 'com.github.cpiz:BubbleView:{X.X.X}'`
```
dependencies {
...
compile 'com.github.cpiz:BubbleView:0.9.6'
compile 'com.github.cpiz:BubbleView:{X.X.X}'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ private void init(Context context, AttributeSet attrs) {
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
if (changed) {
mBubbleImpl.updateDrawable(right - left, bottom - top, true);
}
// if (changed) { // fix PopupWindow wrong arrow position issue
mBubbleImpl.updateDrawable(right - left, bottom - top, true);
// }
}

@Override
Expand Down

0 comments on commit cb41758

Please sign in to comment.