Skip to content

Commit

Permalink
fix: popup style.height
Browse files Browse the repository at this point in the history
  • Loading branch information
linjinze999 committed Oct 9, 2024
1 parent 193b939 commit 9d95957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hippy_ui_react/src/components/Popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export class Popup extends Component<PopupProps, PopupState> {
const { animationOption, style, animated } = props;
if (animated) {
this.animateHasEnd = false;
const userHeight = transferStyle(style).height;
this.slideManager = getSlideManager({
startValue: transferStyle(style).height || WINDOW_HEIGHT(),
startValue: userHeight && typeof userHeight === 'number' ? userHeight : WINDOW_HEIGHT(),
toValue: 0,
...Popup.defaultAnimation,
...animationOption,
Expand Down

0 comments on commit 9d95957

Please sign in to comment.