Bug 1075200 - [Settings] Unable to set AM/PM time after change time form...

* workaround of clientHeight return 0 issue
* fix potential bugs