Sunday 15 July 2012

dojo - Error when using dojox.mobile.Opener -


I'm trying to use the dojox opener. I tried to run the example directly from the examples of dojo, but when I try to run it fails in: Unkit type error: 'In' operator can not be used for 'offsetwidth' in unchanged < / P>

  & lt; Button onclick = "dijit.registry.byId ('CustomPicker'). Show ()" & gt; Slide up & lt; / Button & gt; & Lt; Div id = "customPicker" data-dojo-type = "dojoox / mobile / opener" & gt; & Lt; H1 data-dojo-type = "dojox / mobile / heading" label = "custom picker" & gt; & Lt; Div data-dojo-type = "dojox / mobile / toolbarbutton" label = "full" square = "mblColorBlue" style = "width: 45px; float: correct;" OnClick = ".dijit.registry.byId ('CustomPicker') to hide ()" & gt; & Lt; / Div & gt; & Lt; / H1> Hello!!! & Lt; / Div & gt;   

I gave an example in this bella:

found problem When the size of the screen is below a certain threshold dodge, it uses a slide-up method from below. This works when it is a matter, but if Dojo thinks that you are in a shot resolution then show the content Uses the tooltip function, in this case it has failed. An order to show tooltip overlays requires aroundNode arguments. So I changed the above button:

& lt; Button onclick = "dijit.registry.byId ('customPicker'). Show (this)" & gt; Slide up & lt; / Button & gt;

And it worked fine in tablets and phones.

No comments:

Post a Comment