#17187 closed defect (fixed)
Style of Dojox/mobile/Switch is not set correctly when it's hidden
Reported by: | Sebastien Pereira | Owned by: | Patrick Ruzand |
---|---|---|---|
Priority: | low | Milestone: | 1.9.1 |
Component: | DojoX Mobile | Version: | 1.8.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
This happens on FF and IE but not Chrome.
This issue is caused by pos not being set correctly in the _changeState() defined in dojox/mobile/_compat.js so the sliding knob is not move to the right position.
if(!on){
pos = -this.inner.firstChild.firstChild.offsetWidth; pos is 0 when the switch is not visible
}else{
pos = 0;
}
Change History (5)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Milestone: | tbd → 1.9.1 |
---|---|
Owner: | set to Patrick Ruzand |
Priority: | undecided → low |
Status: | new → assigned |
comment:4 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Test available here: http://jsfiddle.net/spereira/GPGwc