material-components / material-components/material-components-android

[ExtendedFloatingActionButton] Inconsistent size when expanding if the text is short

Open
#3,285 2 comments 0 reactions 1 assignee View on GitHub

@imhappi is already working on this.

Since Mar 3, 2023.

bug Widget: FloatingActionButton
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** If `ExtendedFloatingActionButton` has short text - the size changes a little when expanding:

https://user-images.githubusercontent.com/4838367/222780184-1af7d8e0-e6db-4e43-9ff0-bdaaf1e1e1dd.mp4

**Expected behavior:** If text long - everything works as expected:

https://user-images.githubusercontent.com/4838367/222783304-3f8adc6d-aa95-40a9-a500-18c40c242a9b.mp4

**Source code:**
```

```
`fab.extend()`

App theme `Theme.Material3.*`

**Android API version:** 30

**Material Library version:** 1.8.0, 1.9.0-alpha02

**Device:** POCO X3 NFC

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.