Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12547 closed defect (fixed)

ScrollableView: Wrong Height and Cannot Scroll to End in Complex Layout

Reported by: ykami Owned by: ykami
Priority: high Milestone: 1.7
Component: DojoX Mobile Version: 1.6.0
Keywords: 1.7-mobile Cc:
Blocked By: Blocking:

Description

ScrollableView sometimes miscalculates the view height especially when views are nested and both an inner view and an outer view have fixed headers. In such cases, you cannot scroll to the very bottom of the view. The attached file is an example to reproduce this problem.

[IBM:1814]

Attachments (1)

testScrollableView2.html (4.1 KB) - added by ykami 9 years ago.
An example to reproduce the problem

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by ykami

Attachment: testScrollableView2.html added

An example to reproduce the problem

comment:1 Changed 9 years ago by ykami

Several fixes and refactoring have been done regarding layout and resize.

  • Added resize() method to each resizable widget.
  • The resize() method will be called from the parent widget if any.
  • If a widget is a top-level widget, resize() will be called from dojox.mobile.resizeAll().
  • scrollable#resizeView has been renamed to resize().
  • scrollable no longer connects to onorientationchange/onresize events.
  • Fixed header's layout has been changed from position:absolute to position:relative.
  • fixedHeaderHeight no longer need to be explicitly specified.
  • FixedSplitter no longer connects to onorientationchange/onresize events.
  • TabBar#onResize() has been renamed to resize().

comment:2 Changed 9 years ago by ykami

Resolution: fixed
Status: newclosed

(In [24139]) Fixes #12547 !strict. Fixes and refactoring have been done regarding layouting and resizing.

comment:3 Changed 9 years ago by ykami

Resolution: fixed
Status: closedreopened

Still have resize problems. resize() is called unnecessarily a couple of times.

comment:4 Changed 9 years ago by ykami

Resolution: fixed
Status: reopenedclosed

(In [24189]) Fixes #12547 !strict. Fixed a problem where resize() was called too much.

comment:5 Changed 9 years ago by Douglas Hays

(In [25201]) Fixes #13083. Refs #12547. Added (dojo, dojox) parameters to new scrollable(). !strict

Note: See TracTickets for help on using tickets.