The issue is if you start with a device on portrait then rotate to landscape the backdrop will resize to the landscape's width. On rotating back to portrait the backdrop retains the landscape width thus pushing the document size to be the same as landscape.

Comments

jerrylow’s picture

fabianx’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: 2337691-ctools-backdrop-orientation-size.patch, failed testing.

jerrylow’s picture

StatusFileSize
new616 bytes

Wrong path.

jerrylow’s picture

StatusFileSize
new500 bytes

That was still off. Here's the corrected path and changed the jQuery code to match the coding styles of modal.js.

fabianx’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: 2337691-ctools-backdrop-orientation-size-2.patch, failed testing.

mrjmd’s picture

Status: Needs work » Needs review
StatusFileSize
new935 bytes

Re-rolled and fixed some coding standard issues.

fabianx’s picture

Status: Needs review » Reviewed & tested by the community

RTBC, looks great.

  • japerry committed cb3f55f on 7.x-1.x authored by mrjmd
    Issue #2337691 by jerrylow, mrjmd: Modal backdrop size is inaccurate on...
japerry’s picture

Status: Reviewed & tested by the community » Fixed

Yup, fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.