Replace full with size_full (#7888)

This PR removes the `full` style method and replaces it with
`size_full`, as the two do the same thing.

This is the generated code for `size_full`:

```rs
#[doc = "Sets the width and height of the element.\n\n100%"]
fn size_full(mut self) -> Self {
    let style = self.style();
    style.size.width = Some((gpui::relative(1.)).into());
    style.size.height = Some((gpui::relative(1.)).into());
    self
}
```

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-02-15 22:26:49 -05:00 committed by GitHub
parent a161a7d0c9
commit 4310b0b8de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 14 deletions

View file

@ -21,13 +21,6 @@ pub trait Styled: Sized {
self
}
/// Sets the size of the element to sthe full width and height.
fn full(mut self) -> Self {
self.style().size.width = Some(relative(1.).into());
self.style().size.height = Some(relative(1.).into());
self
}
/// Sets the position of the element to `relative`.
/// [Docs](https://tailwindcss.com/docs/position)
fn relative(mut self) -> Self {