mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
add tooltip to account tab where label is truncated
This commit is contained in:
parent
c57a445046
commit
97f21394a7
1 changed files with 3 additions and 0 deletions
|
@ -1654,6 +1654,9 @@ public class AppController implements Initializable {
|
|||
subTabLabel.setGraphic(getSubTabGlyph(wallet));
|
||||
subTabLabel.setContentDisplay(ContentDisplay.TOP);
|
||||
subTabLabel.setAlignment(Pos.TOP_CENTER);
|
||||
if(TextUtils.computeTextWidth(subTabLabel.getFont(), label, 0.0D) > (90-6)) {
|
||||
subTabLabel.setTooltip(new Tooltip(label));
|
||||
}
|
||||
subTab.setGraphic(subTabLabel);
|
||||
FXMLLoader walletLoader = new FXMLLoader(getClass().getResource("wallet/wallet.fxml"));
|
||||
subTab.setContent(walletLoader.load());
|
||||
|
|
Loading…
Reference in a new issue