I figured it out. The deceiving misalignment is caused by the border color that is automatically part of the button.
A darker color button generates a darker color border and that fixed it.
Thanks
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi;
Wrote this code to display two buttons that represent an OFF/ON switch. They work as intended.
With both buttons set to OFF mode they are the same exact size. However when I press one of
the buttons to change its mode, the button clicked seems to appear larger and is no longer in
exact alignment with the other.
Does anyone know why this is so?
Thanks in advance for the guidance.