r-lib / gtable

The layout packages that powers ggplot2
https://gtable.r-lib.org
Other
87 stars 18 forks source link

absolute.size not needed in width/heightDetails #53

Closed baptiste closed 8 years ago

baptiste commented 8 years ago

cf email discussion with Paul Murrell, Hadley and Winston (23/07/2015): no-one seems to remember why absolute.units was used here in the first place. But it is rather inconvenient in practice -- consider this one example for illustration:

absolute.size(unit.c(unit(1,"npc"), 
                      unit(1,"grobwidth", data=textGrob("label"))))
[1] 1null 1null

Not what’s usually intended, and problematic if one wants a tight layout based on the string width.