Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support top-level padding / autosize property #1496

Closed
peller opened this issue Aug 8, 2016 · 2 comments
Closed

Support top-level padding / autosize property #1496

peller opened this issue Aug 8, 2016 · 2 comments
Assignees

Comments

@peller
Copy link

peller commented Aug 8, 2016

Support the padding property, in particular, the ability to use "strict" as a value such that width and height become constant. This is essential in order to do page layout.

See #1214

@kanitw kanitw added this to the 1.x.x Important Patches milestone Aug 8, 2016
@kanitw kanitw modified the milestones: 2.0.0 Important Feature & Patches, 2.0.0-alpha.0 Pre-composition MVP Oct 20, 2016
@kanitw kanitw mentioned this issue Oct 20, 2016
6 tasks
@kanitw kanitw changed the title Support padding property Support top-level padding property Nov 2, 2016
@kanitw kanitw changed the title Support top-level padding property Support top-level padding / autosize property Nov 4, 2016
@kanitw
Copy link
Member

kanitw commented Nov 4, 2016

Related Note for Vega 3

Vega 3 adds a new top-level "autosize" property to set the layout mode. The allowed options are "pad" (the default, similar to "padding": "auto" in Vega 2, the chart dimensions will be expanded as needed to fit the chart, axes and legends), "fit" (similar to "padding": "strict" in Vega 2, the data rectangle size will be decreased in an attempt to force the chart to fit within the given width and height) and "none" (no resizing is performed, and the chart size is solely determined by the width, height and padding settings).

@kanitw
Copy link
Member

kanitw commented Dec 13, 2016

Will be done as a part of #1778

@kanitw kanitw closed this as completed Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants