Skip to content

Commit

Permalink
Fix webview height (#3326)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell authored Oct 12, 2023
1 parent 1dbc4fd commit abd3a7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,12 @@

<activity
android:name=".ui.TokenFunctionActivity"
android:hardwareAccelerated="true"
android:label="@string/token_function" />

<activity
android:name=".ui.FunctionActivity"
android:hardwareAccelerated="true"
android:label="@string/token_function" />

<activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ private boolean displayTokenView(final TokenDefinition td)
{
LinearLayout webWrapper = findViewById(R.id.layout_webwrapper);
tokenScriptView = new Web3TokenView(this);
tokenScriptView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
tokenScriptView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));

if (tokenScriptView.renderTokenScriptView(token, new TicketRange(tokenId, token.getAddress()), viewModel.getAssetDefinitionService(), ViewType.VIEW, td))
{
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_nft_asset_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<LinearLayout
android:id="@+id/layout_webwrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="@dimen/tiny_8"
android:layout_marginTop="@dimen/standard_16"
Expand Down

0 comments on commit abd3a7f

Please sign in to comment.