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

Block Library: Column: Add draggable resize control #15659

Open
aduth opened this issue May 15, 2019 · 3 comments
Open

Block Library: Column: Add draggable resize control #15659

aduth opened this issue May 15, 2019 · 3 comments
Labels
[Block] Columns Affects the Columns Block [Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.

Comments

@aduth
Copy link
Member

aduth commented May 15, 2019

Previously: #15499

As of #15499, it is possible to resize a Column block using the "Percentage width" input in the block inspector. We should seek to enhance this by adding optional interactive controls within the rendered display of the block itself.

Implementation specifics:

It should likely be implemented using ResizableBox, and behave similarly to the Media & Text block resizing.

I had originally spent some time on this in #15499, reflected in the following in-progress (including clumsy attempts at math) diff at: https://gist.github.com/aduth/dc2136eb703a3c1dad39b3879f37ac6e

Per @jasmussen's comment at #15499 (comment), this may need to be reconsidered, however. The above diff assumes that each column would display its own resizer, and only when it is selected. From this design recommendation, the resizer may well become either part of the rendered output of the Columns parent block, or as some customization of how it renders InnerBlocks. It may be necessary to enhance InnerBlocks to customize the rendered output of individual blocks in the nested area, similar to what was done for customizing appender behavior with renderAppender introduced in #14241 (e.g. renderBlock).

@paaljoachim
Copy link
Contributor

I am wondering if we can close this issue?

@gziolo

@gziolo
Copy link
Member

gziolo commented Jan 13, 2021

I don't know, it seems like a valid feature request.

@paaljoachim
Copy link
Contributor

I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Columns Affects the Columns Block [Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants