#15761 closed defect (fixed)
dojox.mobile.scrollable calculates incorrect height during resize() when inside a parent with borders
Reported by: | nickmaynard | Owned by: | Patrick Ruzand |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9.1 |
Component: | DojoX Mobile | Version: | 1.8.0rc1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The existing resize() calculation logic does not allow for situations where the parent has borders. In this case, a "v" scrollable with height "inherit" will overlay the borders of the parent.
The following will fix this - replace: h = this.domNode.offsetParent.offsetHeight + "px"; with: h = dojo.contentBox(this.domNode.offsetParent).h + "px";
(Obviously, adjust for AMD loading).
Change History (7)
comment:1 Changed 8 years ago by
comment:2 Changed 8 years ago by
Component: | General → DojoX Mobile |
---|---|
Owner: | set to Eric Durocher |
comment:3 Changed 8 years ago by
I've published a patch for http://trac.dojotoolkit.org/ticket/17050 that also solves this issue.
comment:4 Changed 8 years ago by
Milestone: | tbd → 1.9.1 |
---|
comment:5 Changed 8 years ago by
Owner: | changed from Eric Durocher to Patrick Ruzand |
---|---|
Status: | new → assigned |
comment:6 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Or, indeed: h = this.domNode.offsetParent.clientHeight + "px";