# Ensure \`flex_float\` works even when re-painting without layout · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/95d848fe1e038a652a8331028cff249df920fd18)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 95d848fe1e038a652a8331028cff249df920fd18

Requested commit: 95d848fe1e038a652a8331028cff249df920fd18

Commit: 95d848fe1e038a652a8331028cff249df920fd18

Tree: 1fcd884e06af672f87b4eadc69047f3ce67d6928

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Ensure `flex_float` works even when re-painting without layout

Previously, we were mutating the remaining space stored on the layout
state, which would cause re-paints to always have a `remaining_space`
of 0 and therefore not align `flex_float` elements to the right/bottom.

```

## Parents

- [8445eaab85bd4ab23f4bb729fd46567b6b8b7017](https://git.cafe/gitcafe/zed/commit/8445eaab85bd4ab23f4bb729fd46567b6b8b7017?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/95d848fe1e038a652a8331028cff249df920fd18?format=markdown)
