Skip to content

Commit

Permalink
try to fix popup height
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Dec 14, 2022
1 parent ec68893 commit dbfa6ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.xpopup_version = "2.9.16"
ext.xpopup_version = "2.9.17-beta"
repositories {
google()
mavenCentral()
Expand Down
3 changes: 1 addition & 2 deletions library/src/main/java/com/lxj/xpopup/core/BasePopupView.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ public Lifecycle getLifecycle() {
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();

init();
Log.d("tag", "onAttachedToWindow");
}

public BasePopupView show() {
Expand Down Expand Up @@ -226,6 +224,7 @@ protected void doMeasure(){
params.height = activityContent.getHeight();
}
params.leftMargin = popupInfo!=null && popupInfo.isViewMode ? activityContent.getLeft():0;
params.topMargin = activityContent.getTop();
setLayoutParams(params);
}

Expand Down

0 comments on commit dbfa6ce

Please sign in to comment.