#daniyal_11692

1 messages · Page 1 of 1 (latest)

austere agateBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

fringe lichen
#

Hello! The Payment Element is not designed to have a restricted height. You should allow it to resize to any height it wants.

#

You can constrain the width though.

frank stump
#

if i remove the height property it looks like this

#

i just want to end this vertical scroll

#

on desktop it is working fine

fringe lichen
#

You need to adjust your iframe so it's tall enough to show the entire Payment Element.

#

Which will be tricky, because the Payment Element varies in height as you use it.

frank stump
#

i'm already setting the height for iframe

fringe lichen
#

What are you setting it to?

frank stump
#

418px

fringe lichen
#

That's not going to work.

#

You can't just set a static height.

frank stump
#

i've also tried iframe.contentWindow.document.body.scrollHeight

fringe lichen
#

Let's back up a bit. Does the Payment Element absolutely need to be inside your iframe?

frank stump
#

yes, bcz i'm using shadow dom and stipe has not yet supported shadow dom

fringe lichen
#

Do you have a link to a test case where I can reproduce the issue and debug it?

frank stump
#

sorry, i've this only on my local

fringe lichen
#

I'm not sure how much help I can provide with only a description of the issue. I would need to see and debug it on my end.

frank stump
#

ok thanks for your time.

fringe lichen
#

If you can produce a test case online somewhere we'd be happy to help further!

frank stump
#

got it! thanks!