On 16/01/17 16:12,
[hidden email] wrote:
> Hi,
>
>
> I've place a dgrid in a dojox.mobile.ScrollableView and on a desktop
> browser the scrollbar works as it should but when viewing the same page
> on my mobile (iPhone), the scrollbar is missing.
dgrid is scrollable already, if you set its height, isn't it? I would
guess you either want to:
- put the dgrid in a simple View, and let dgrid handle the scrolling for you
- or stick with your current approach, make the dgrid be 'auto height'
i.e. its full height and let the ScrollableView do the scrolling
Having a dgrid inside a ScrollableView sounds like a combination of two
widgets that both attempt to support scrolling.
When I have a dgrid on a page, I usually listen for the app-resize event
and rearrange the height of the dgrid myself, i.e. in a View that has a
dojox/mobile/Heading at the top and a dgrid filling the rest of the page:
init: function(){
var self = this;
this.app.on('app-layoutView', function (params) {
if (params.view === self) {
var ss = common.getScreenSize(),
headingHeight = domGeom.getMarginBox(self.heading.domNode),
remainingHeight = ss.h - headingHeight.h;
domStyle.set(self.myDgrid.domNode, 'height',
remainingHeight + 'px');
}
});
Nick
--
Dojo Toolkit:
http://dojotoolkit.org/Tutorials:
http://dojotoolkit.org/documentation/[hidden email]
To unsubscribe, visit:
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest