Opened 7 years ago

Closed 7 years ago

#15767 closed defect (wontfix)

dojo.back.init() iframe content has a size in mobile safari

Reported by: craigching Owned by:
Priority: undecided Milestone: tbd
Component: Version: 1.7.3
Keywords: Cc:
Blocked By: Blocking:

Description

This happens with Safari on iPad iOS 5.1.1, though I know it happened with older versions of iOS as well, but I don't have specifics.

This also happens with 1.6.x versions of dojo as well.

The fix appears to be to add "display:none;" to the iframe style set in dojo.back.init():

document.write('<iframe style="display:none;border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;" name="dj_history" id="dj_history" src="' + src + '"></iframe>');

I haven't had a chance to test windows browsers with this change yet, but I will do so tomorrow. I've attached a series of files showing the problem. The first is with stock 1.7.3, the second is with "visibility:hidden;" removed to show how it looks when visible, the last is with "display:none;" added.

Attachments (3)

IMG_0003.PNG (162.8 KB) - added by craigching 7 years ago.
Image showing how my page looks with dojo.back.init() with stock 1.7.3
IMG_0004.PNG (172.0 KB) - added by craigching 7 years ago.
My page with "visibility:hidden;" removed.
IMG_0005.PNG (171.7 KB) - added by craigching 7 years ago.
My page with "display:none;" added

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by craigching

Attachment: IMG_0003.PNG added

Image showing how my page looks with dojo.back.init() with stock 1.7.3

Changed 7 years ago by craigching

Attachment: IMG_0004.PNG added

My page with "visibility:hidden;" removed.

Changed 7 years ago by craigching

Attachment: IMG_0005.PNG added

My page with "display:none;" added

comment:1 Changed 7 years ago by craigching

Internet Explorer 8 and 9 both work fine with this change.

comment:2 Changed 7 years ago by bill

Component: Core
Resolution: wontfix
Status: newclosed

dojo.back is deprecated by dojo.hash

Note: See TracTickets for help on using tickets.