Opened 8 years ago

Closed 7 years ago

#14413 closed defect (wontfix)

The entire page always resizes quite a while when loading background picture(on mobile device)

Reported by: remy314 Owned by: ykami
Priority: high Milestone: tbd
Component: DojoX Mobile Version: 1.7.0
Keywords: load background picture Cc: Atsushi Ono, Eric Durocher
Blocked By: Blocking:

Description

if "dojox/mobile" is required, The entire page always resizes quite a while when loading background picture at the inisialize period.Please visit the simple test page through a mobile device browser(android webview or iPhone safari) and you'll see the bad result. when disable the "require(dojox/mobile?);" line the performance will become much better.

Attachments (3)

load_image.html (649 bytes) - added by remy314 8 years ago.
a simple testcase
scene.jpg (107.9 KB) - added by remy314 8 years ago.
test image
new_testcase.html (684 bytes) - added by remy314 8 years ago.

Download all attachments as: .zip

Change History (11)

Changed 8 years ago by remy314

Attachment: load_image.html added

a simple testcase

Changed 8 years ago by remy314

Attachment: scene.jpg added

test image

comment:1 Changed 8 years ago by bill

Component: GeneralDojoX Mobile
Owner: set to ykami

comment:2 Changed 8 years ago by ykami

Cc: Atsushi Ono added

comment:3 Changed 8 years ago by bill

Milestone: tbd

comment:4 Changed 8 years ago by Atsushi Ono

This is because the body height is resized during page initialization to be enough height to hide address bar. Therefore, your test page works fine if you set the vertical position of background image to "top" instead of "center". Is it acceptable to set the vertical position which is not affected by the body height such as "top" or "x%"?

comment:5 Changed 8 years ago by remy314

Yes your solution is temporarily workaround but it still a defect right? Actually besides background image, any dom element has the same problem if I set the height property equals "x%". I've uploaded another sample for that.

Last edited 8 years ago by remy314 (previous) (diff)

Changed 8 years ago by remy314

Attachment: new_testcase.html added

comment:6 Changed 8 years ago by Atsushi Ono

The algorithm for hiding address bar was reconsidered in #14635 and #14827, so the elapsed time for hiding address bar becomes shorter than before now. You will be able to prevent auto-resizing of body height in either of the following two ways:

  • If you do not need to hide address bar, please add "mblHideAddressBar:false" to your djConfig/data-dojo-config. (This works in Dojo 1.7 too, so please try.)
  • If you need to hide address bar, please set height/min-height style to body element to make it high enough to hide address bar, then auto-resizing will be prevented.

comment:7 Changed 8 years ago by cjolif

Cc: Eric Durocher added

comment:8 Changed 7 years ago by ykami

Resolution: wontfix
Status: newclosed

If you still think it is a problem, please feel free to reopen this.

Note: See TracTickets for help on using tickets.