You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For my life, I just can't make the KlarnaCheckoutView size dynamically to its content.
I have a React Native application, that I am trying to add the KlarnaCheckoutView to. The problem is that I want the containing view to automatically resize to the current size of the KlarnaCheckoutView.
What I am doing is
public class KlarnaCheckoutViewWrapper extends FrameLayout {
public KlarnaCheckoutViewWrapper(ThemedReactContext context) {
super(context);
setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
mKlarnaCheckout = new KlarnaCheckoutView(context.getCurrentActivity());
mKlarnaCheckout.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
addView(mKlarnaCheckout);
}
}
but whatever I do, the KlarnaCheckoutView always has 0 height.
Expected behavior
I would expect the KlarnaCheckoutView to report a height greater than zero
Device and version:
Device: Android Emulator
OS version: Seems to happen in all versions
Klarna In-App SDK version 2.5.0
Merchant Name
Rather not say
Impact Level
Blocker
The text was updated successfully, but these errors were encountered:
Describe the bug
For my life, I just can't make the KlarnaCheckoutView size dynamically to its content.
I have a React Native application, that I am trying to add the KlarnaCheckoutView to. The problem is that I want the containing view to automatically resize to the current size of the KlarnaCheckoutView.
What I am doing is
but whatever I do, the KlarnaCheckoutView always has 0 height.
Expected behavior
I would expect the KlarnaCheckoutView to report a height greater than zero
Device and version:
Merchant Name
Rather not say
Impact Level
Blocker
The text was updated successfully, but these errors were encountered: