Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12725] MobileWeb: Ti.UI.Switch's width changes unexpectedly

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:36:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelslinvalid
ReporterCarter Lathrop
AssigneeChris Barber
Created2013-02-12T10:30:38.000+0000
Updated2018-04-04T23:20:17.000+0000

Description

*Steps to reproduce:* 1) open project from attachment 2) run it. 3) turn switch "Device is invisible now" on and then off. 4) turn switch "Bluetooth disabled" on and off multiple times *Expected result* Switch "Device is invisible now" should not change size when another switch is clicked. *Actual result* Switch "Device is invisible now" changes size when you click on another switch.

Attachments

FileDateSize
bug.avi2013-02-12T10:30:38.000+0000360363
switchWidthBug.zip2013-02-12T10:30:38.000+0000816527

Comments

  1. Carter Lathrop 2013-02-12

    Hello Stanislav, Why wouldn't you set the desired size of the switch before hand? Leaving the width property blank leaves it to be resized every time the button is switched. It is generally good practice to set the desired width of the switch because then the resizing will not happen. Have you tried this? Regards, Carter
  2. Stanislav Fedorenko 2013-02-12

    Hi, Carter. Thanks for fast answer. It's ok that Switch resizes on some event(like click). That not a problem. But it's not ok when you don't touch it - switch still resizes! In a sample (and video) i have provided 2 switches. When i click on first one - second changes! It's very weird. Switch should set right (new) size on it's own events - not on some event from any another switch. And it's not ok "pixel by pixel adjusting" (you can see it on video). Right size should be set once for each text (one size for "on text" another for "off text"). Regards, Stanislav
  3. Lee Morris 2017-05-01

    Resolving ticket as "Won't Fix" as MobileWeb is no longer supported.
  4. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source