Skip to content

0.21.1 Recent transactions tab expands entire window beyond screen resolution #373

@fanquake

Description

@fanquake

(Moved from bitcoin/bitcoin#22246)

When a transaction is displayed in the Overview window on Bitcoin Core 0.21.1, the entire window stretches beyond the screen resolution depending on how many recipients there are in the transaction, even when not focuses on the Overview page. 1-recipient transactions inappropriately expand longer than normal but are still visible in its entirety, but 2 or more recipient transitions expand the tab - and the entire window with it - towards the right. Shrinking the window horizontally is disabled.

Expected behavior

The transaction tuple is truncated according to the window size with a maximum length computed for the "recent transactions":

(0.21.0 behavior): bitcoin core 0.21.0

First transaction is a 1-recipient transaction, second one is a 2-recepient transaction and the rest are blocks mined from regtest -generate. They are truncated if they are larger than the Qt tab size for "recent transactions"

Actual behavior

There is no limit to the length of the recent transactions tab and it forces the horizontal dimension of the window to be exactly the size of the longest transaction tuple listed in the recent transactions tab.

(0.21.1 behavior): bitcoin core 0.21.1

The mined blocks transactions fit, but the 1-recipient transaction and the 2-receipient transaction stretch too far to the right, as if a size limit was not being set for the tab.

To reproduce

This issue can be consistently reproduced.

  • Start bitcoind in regtest and in another terminal run bitcoin-cli --regtest -generate 110 (this is to create bitcoins needed to make the problem transactions)
  • Shut down bitcoind and open bitcoin-qt in regtest
  • Generate two receiving addresses using Receive > Create New Receiving Address
  • Go to the Send tab, add two receiving address and send them an arbitrary amount of BTC in a single transaction and press Send (the amount is irrelevant)

(at this point you may create another transaction to any address using one receiving address if you want, to compare the difference)

  • Switch to Overview Tab to view the non-truncated transactions. Note that the window will already appear expanded if you simply open a wallet with such transactions.

System information

Bitcoin core 0.21.1 precompiled from bitcoincore.org, Linux KDE5 Ubuntu 20.04 running Qt 5.9.8, display resolution 1366x768

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions