[wp-trac] [WordPress Trac] #30155: Fix crop image functionality within edit flow
WordPress Trac
noreply at wordpress.org
Fri Jun 23 19:21:04 UTC 2017
#30155: Fix crop image functionality within edit flow
-------------------------------------+-------------------------------------
Reporter: sonjanyc | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch reporter- | Focuses: ui, accessibility,
feedback needs-testing | javascript
-------------------------------------+-------------------------------------
Comment (by adamsilverstein):
In [attachment:30155.4.diff]
Use img.innerWidth() and img.innerHeight() in place of img[0].width and
img[0].height, matching the method used in imgAreaSelect adjust() and
ensuring full image is selected without artificially adding 1.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30155#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list