Skip to content

Commit fb67dbe

Browse files
committed
Fix #82
1 parent 450dd55 commit fb67dbe

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

R/element_marquee.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
#' small shifts in the visuals when going from `element_text()` to
1111
#' `element_marquee()` as size reporting may differ between the two elements.
1212
#'
13+
#' @note grid, which marquee, ggplot2, etc are build upon contains a bug that
14+
#' means that the height of a grob is calculated before the grob knows it's
15+
#' width. The result of this is that if the width of an `element_marquee()` is
16+
#' `NULL` (the default), the text may overflow its allocated space with an
17+
#' additional line. Unfortunately there is no great fix for this, other than
18+
#' eyeball the width it has available and pass that to the element (e.g.
19+
#' `element_marquee(width = grid::unit(10, "cm"))`)
20+
#'
1321
#' @param family The font family of the base style
1422
#' @param colour,color The font colour of the base style
1523
#' @param size The font size of the base style

man/element_marquee.Rd

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)