We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c35bb77 + be479c5 commit efc52cdCopy full SHA for efc52cd
library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java
@@ -225,19 +225,21 @@ public boolean hasShowcaseView() {
225
}
226
227
public void setShowcaseX(int x) {
228
- setShowcasePosition(x, showcaseY);
+ setShowcasePosition(x, getShowcaseY());
229
230
231
public void setShowcaseY(int y) {
232
- setShowcasePosition(showcaseX, y);
+ setShowcasePosition(getShowcaseX(), y);
233
234
235
public int getShowcaseX() {
236
- return showcaseX;
+ getLocationInWindow(positionInWindow);
237
+ return showcaseX + positionInWindow[0];
238
239
240
public int getShowcaseY() {
- return showcaseY;
241
242
+ return showcaseY + positionInWindow[1];
243
244
245
/**
0 commit comments