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

Image block: width and height input fields in inspector do not start at current values #7638

Closed
ZebulanStanphill opened this issue Jun 29, 2018 · 1 comment
Labels
[Block] Image Affects the Image Block [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement.

Comments

@ZebulanStanphill
Copy link
Member

ZebulanStanphill commented Jun 29, 2018

The issue

The Width and Height input fields in the block inspector settings for the Image block have placeholder text displaying the current height and width. However, I think this is a bit misleading as when you try to change the input values by pressing the up/down arrows added by browsers, the inputs start at 0. The inputs should start at the current width/height values.

Related issues and PRs

@designsimply
Copy link
Member

Tested and confirmed with the following steps:

  1. Click the 'Add Block' button and select 'Image'.
  2. Select an image from the media library or upload one.
  3. Go to Settings > Block.
  4. Place cursor in the Width field and press the up arrow.

Result: my original image width was 3868 and I expected that pressing the up arrow would change the number to 3869 but it changed to 1 instead.

screen shot 2018-07-02 at mon jul 2 6 55 47 pm
Seen at http://alittletestblog.com/wp-admin/post.php?post=13859&action=edit running WordPress 4.9.6 and Gutenberg 3.1.1 using Firefox 61.0 on macOS 10.13.5.

@ZebulanStanphill ZebulanStanphill changed the title Image block width and height input fields in inspector do not start at current values Image block: width and height input fields in inspector do not start at current values Aug 20, 2018
@danielbachhuber danielbachhuber added the [Block] Image Affects the Image Block label Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants