René's URL Explorer Experiment


Title: Add more consistent padding config to components · Issue #985 · plotly/plotly.js · GitHub

Open Graph Title: Add more consistent padding config to components · Issue #985 · plotly/plotly.js

X Title: Add more consistent padding config to components · Issue #985 · plotly/plotly.js

Description: The problem: components are positioned in fractional coordinates, but axis labels take up a fixed amount of space relative to the screen. This makes it effectively impossible to create a consistent amount of padding between the plot and ...

Open Graph Description: The problem: components are positioned in fractional coordinates, but axis labels take up a fixed amount of space relative to the screen. This makes it effectively impossible to create a consistent...

X Description: The problem: components are positioned in fractional coordinates, but axis labels take up a fixed amount of space relative to the screen. This makes it effectively impossible to create a consistent...

Opengraph URL: https://github.com/plotly/plotly.js/issues/985

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add more consistent padding config to components","articleBody":"**The problem**: components are positioned in fractional coordinates, but axis labels take up a fixed amount of space relative to the screen. This makes it effectively impossible to create a consistent amount of padding between the plot and the labels when the plot size is changed. At the moment there seems to be some `xpad` and `ypad` attributes, but I think it needs to be more complete and consistent.\n\n**A solution**: I propose adding a common `padding: {t: ..., r: ..., b: ..., l: ...}` attribute to most components. Ideally the logic could be hoisted up a level and DRYd up, but realistically, I feel like all components might just have to implement this positioning themselves. The result though is that it would be possible to carefully and precisely align components. This approach is consistent with what most people would probably expect based on html experience and is backward compatible if it defaults to zeros. Together with fractional positioning, I feel like you could at least get _way_ closer to a satisfying layout.\n\n**Note**: I'm running into this quite a bit as I try to align multiple components in an aesthetically pleasing way and trying to line up a slider with buttons is turning out to be particularly painful. Padding would instantly solve this.\n\n**Example**: With identical config (apart from the size) that uses fractional padding to clear the axis labels, the small plot has a nice amount of space between the axis and the controls; the large plot has way too much space. http://codepen.io/rsreusser/pen/NRgbJy?editors=0010\n\n\u003cimg width=\"799\" alt=\"screen shot 2016-09-27 at 23 28 13\" src=\"https://cloud.githubusercontent.com/assets/572717/18899871/22b5aaa6-850a-11e6-8d57-5154d00758d1.png\">\n","author":{"url":"https://github.com/rreusser","@type":"Person","name":"rreusser"},"datePublished":"2016-09-28T03:28:00Z","url":"https://github.com/plotly/plotly.js/issues/985"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9409d769-d972-0e9c-c333-ea273ef54d79
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8DC:2454CC:3F710C4:506F8C0:6B021A67
html-safe-nonce9c5f1809c9e830433df40a8ba00674b8df6ee33021ae8705dc8e35a47c84fde6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOERDOjI0NTRDQzozRjcxMEM0OjUwNkY4QzA6NkIwMjFBNjciLCJ2aXNpdG9yX2lkIjoiMzMxNzU1NDQyNjIzOTEzMDIxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5473006a2635c502fcbed531a3536ecdd02bb4bc9165987bc99156ee1b9917ad
hovercard-subject-tagissue:179671962
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/985/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ad5249fd6fa6f4df2c84afeb5eedab20714d58564c50339973030c4857744722/plotly/plotly.js/issues/985
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ad5249fd6fa6f4df2c84afeb5eedab20714d58564c50339973030c4857744722/plotly/plotly.js/issues/985
og:image:altThe problem: components are positioned in fractional coordinates, but axis labels take up a fixed amount of space relative to the screen. This makes it effectively impossible to create a consistent...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerreusser
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/985#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F985
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F985
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/985
Reloadhttps://github.com/plotly/plotly.js/issues/985
Reloadhttps://github.com/plotly/plotly.js/issues/985
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/985
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/985
Add more consistent padding config to componentshttps://github.com/plotly/plotly.js/issues/985#top
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/rreusser
rreusserhttps://github.com/rreusser
on Sep 28, 2016https://github.com/plotly/plotly.js/issues/985#issue-179671962
http://codepen.io/rsreusser/pen/NRgbJy?editors=0010http://codepen.io/rsreusser/pen/NRgbJy?editors=0010
https://cloud.githubusercontent.com/assets/572717/18899871/22b5aaa6-850a-11e6-8d57-5154d00758d1.png
rreusserhttps://github.com/rreusser
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
status: discussion neededhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22status%3A%20discussion%20needed%22
on Sep 28, 2016https://github.com/plotly/plotly.js/issues/985#event-804875652
https://github.com/rreusser
rreusserhttps://github.com/rreusser
on Sep 28, 2016https://github.com/plotly/plotly.js/issues/985#issuecomment-250209117
@etpinardhttps://github.com/etpinard
https://github.com/rreusser
rreusserhttps://github.com/rreusser
on Sep 29, 2016https://github.com/plotly/plotly.js/issues/985#issuecomment-250518306
#997https://github.com/plotly/plotly.js/issues/997
rreusserhttps://github.com/rreusser
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 29, 2016https://github.com/plotly/plotly.js/issues/985#event-807273635
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/985
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/985
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.