Opened 7 years ago

Closed 3 years ago

#15135 closed defect (worksforme)

No horizontal scrolling when define ScrollableView programmatically

Reported by: mortelee Owned by: dante
Priority: undecided Milestone: 1.11
Component: DojoX Widgets Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Hi

Looking at example dojo/dojox/trunk/mobile/tests/test_ScrollableView-h.html, I tried to the same but than programmatically.

However when doing so the horizontal scrolling is not working.

I use the following version of dojo 1.7.2: Build started: Thu Feb 16 2012 12:00:51 GMT-0800 (PST) Build application version: 1.7.0dev (23930)

OS: Windows 7 Browser: Chrome 18.0.1025.142 m

Attachments (2)

test2.js (2.0 KB) - added by mortelee 7 years ago.
test2.html (1009 bytes) - added by mortelee 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by mortelee

Attachment: test2.js added

Changed 7 years ago by mortelee

Attachment: test2.html added

comment:1 Changed 7 years ago by mortelee

Apparently my example in test2.js is not how scrollableviews should be made. However I don't see what could be wrong.

I got it working in an other way:

var html = '<div id="scrollPane2">'; html += "<table><tr><td>[some content]</td></tr></table>" html += '</div>'; $('body').append(html);

var scrollableView33 = new dojox.mobile.ScrollableView?({

id:"ultimatetest", scrollDir:"h", height:"50px"

}, "scrollPane2"); scrollableView33 .resize(); scrollableView33 .startup();

Maybe it is a good idea to add also examples for creating widgets programmatically?

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.11
Resolution: worksforme
Status: newclosed

Either this is a documentation issue, or something has been fixed since then, as I'm able to create a ScrollableView? programmatically without issue.

Note: See TracTickets for help on using tickets.