### Bug description

When rendering a plotly plot with quarto it is not correctly scaled according to given width & height arguments passed to the ggplotly scale.
This has also been tested for Rmarkdown and there the behavior is as expected. Scaling of the plot output happens on the basis of the width & height arguments.

Rstudio version: 
RStudio 2022.12.0+353.pro20 "Elsbeth Geranium" Release (02ace23e263335c78e1df5b0892e48913e5fcecf, 2022-12-15) for Ubuntu Bionic
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.41

Quarto version: 1.2.280

Quarto example:

````markdown
---
title: "Quarto"
author: "dkmanl"
format: 
  html:
    embed-resources: true
---

```{r}
#| label: packages
#| results: hide
#| echo: true
#| message: false

library(tidyverse)
library(plotly)
```


```{r}
#| label: data 
#| echo: true

df <- mtcars |> 
  rownames_to_column("model")
```

```{r}
#| label: plot
#| echo: true

plot <- df |> 
  ggplot(aes(x = mpg, y = hp, color = model)) +
  geom_point()

plotly_width <- 1000
plotly_height <- 600

plot |> ggplotly(width = plotly_width, height = plotly_height)
```
````

Rmarkdown example:
````markdown
---
title: "Rmarkdown"
author: "dkmanl"
output: html_document
---

```{r, label=packages, results='hide', message=FALSE, echo=TRUE}

library(tidyverse)
library(plotly)
```


```{r, label=data, echo=TRUE}

df <- mtcars |> 
  rownames_to_column("model")
```

```{r, label=plot, echo=TRUE}

plot <- df |> 
  ggplot(aes(x = mpg, y = hp, color = model)) +
  geom_point()

plotly_width <- 1000
plotly_height <- 600

plot |> ggplotly(width = plotly_width, height = plotly_height)
```
````

Quarto check:

```
[✓] Checking Quarto installation......OK
      Version: 1.2.280
      Path: /opt/quarto/v1.2.280/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.7
      Path: /opt/python/3.10.7/bin/python3
      Jupyter: 5.1.3
      Kernels: python3, py3.7.7, py3.10.7

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.2
      Path: /opt/R/4.2.2/lib/R
      LibPaths:
      rmarkdown: 2.20

[✓] Checking Knitr engine render......OK
```


### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
cscheid
2023-03-15T09:41:37Z
dkmanl
closed
Plotly not correctly scaled based on width and height
https://github.com/quarto-dev/quarto-cli/issues/4836