Switch.qml : Changed the calculation method of dimen to avoid "Binding loop detected" warning