quarto-dev / quarto-dev/quarto-cli
Aboslute positioning of images not working as expected
@cderv is already working on this.
Since Jun 29, 2022.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
System info
quarto-cli git version: d7a4cf1cc
❯ quarto check
[✓] Checking Quarto installation......OK
Version: 99.9.9
Path: /home/mroavi/repos/quarto-cli/package/dist/bin
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.4
Path: /usr/bin/python3
Jupyter: 4.10.0
Kernels: julia-1.5, julia-1.7, python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
I'm not using RStudio IDE.
My system:
OS: Manjaro Linux x86_64
Host: XPS 13 9360
Kernel: 5.15.36-1-rt41-MANJARO
Bug description
The height parameter does not seem to be working as expected when using absolute positioning of images. For example, the following code generates two slides with images of the same size.
---
format:
revealjs:
incremental: false
---
# Test
{.absolute top=200 left=500 height="500"}
# Test
{.absolute top=200 left=500 height="1000"}
Here are the properties of the image I'm using:

Here is the image itself (not sure if GitHub compresses it):

Apparently, the image stops being resized if the height value is above a certain threshold. Moreover, Changing the width parameter has different behavior than changing the height. I also noticed that the image automatically appears way smaller than when using something like {width=60% fig-align="center"}.
Checklist
- formatted your issue so it is easier for us to read?
- included a minimal, self-contained, and reproducible example?
- documented the quarto version you're running, by providing the output produced by
quarto checkin a terminal in your issue? - documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.