Opened 7 years ago
Closed 7 years ago
#16603 closed defect (invalid)
the programmatic example for GridLayout doesn't work as expected
Reported by: | Sebastien Brunot | Owned by: | Eric Durocher |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | DojoX Mobile | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When using the programmatic example at the end of http://dojotoolkit.org/reference-guide/1.8/dojox/mobile/GridLayout.html#dojox-mobile-gridlayout, the buttons are displayed in a single row and not in a 3 columns grid as expected (tested on Google Chrome only).
I've attached a sample to reproduce quickly.
Attachments (2)
Change History (8)
Changed 7 years ago by
Attachment: | grid-layout.html added |
---|
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Component: | General → DojoX Mobile |
---|---|
Owner: | set to Eric Durocher |
comment:3 Changed 7 years ago by
You need to include a theme, either explicitly (e.g. <link ... iphone.css">), or by loading deviceTheme.js before dojo.js. It could probably be made explicit, but then we need to do it for all dojox/mobile samples.
Changed 7 years ago by
Attachment: | theme-checking.patch added |
---|
Example of theme checking implementation
comment:5 Changed 7 years ago by
Maybe we could add a "theme checking" feature that will log a warning when starting a view if it seems that no dojox mobile themes has been loaded ? I've attached a patch with a naive implementation for this theme checking to explain what I mean.
comment:6 Changed 7 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Component is "DojoX Mobile", not "General" my mistake.