Closed chiehan1 closed 8 years ago
@yapcheahshen ios 裡的藏文看起來不是等寬字型, 你知道怎麼計算藏文字的寬度嗎 ?
應該沒有等寬的藏文字型。 為何要計算藏文字串寬度?
2015-12-23 19:53 GMT+08:00 kmsheng notifications@github.com:
@yapcheahshen https://github.com/yapcheahshen ios 裡的藏文看起來不是等寬字型��,你知道怎麼計算藏文字的寬度嗎 ?
— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/30#issuecomment-166872326.
@yapcheahshen 因為要 scroll 到該字出現的位置, 所以必須根據字寬與螢幕寬度算出被搜尋的字是出現在第幾行, iOS 的 UITextView 似乎有類似方法可以取得一個字的 posiiton, React Native 卻沒有。
字寬字高在js應該不好算。將目標element ,設一個 id ,再取得其位置捲過去較簡單。
kmsheng notifications@github.com 於 2015年12月23日 下午8:48 寫道:
@yapcheahshen https://github.com/yapcheahshen 因為要 scroll 到該字出現的位置, 所以必須根據字寬與螢幕寬度算出被搜尋的字是出現在第幾行, iOS 的 UITextView 似乎有類似方法可以取的一個字的 posiiton, React Native 卻沒有。
— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/30#issuecomment-166888501.
http://stackoverflow.com/questions/30096038/react-native-getting-the-position-of-an-element
Yap yapcheahshen@gmail.com 於 2015年12月23日 下午9:00 寫道:
字寬字高在js應該不好算。將目標element ,設一個 id ,再取得其位置捲過去較簡單。
kmsheng notifications@github.com 於 2015年12月23日 下午8:48 寫道:
@yapcheahshen https://github.com/yapcheahshen 因為要 scroll 到該字出現的位置, 所以必須根據字寬與螢幕寬度算出被搜尋的字是出現在第幾行, iOS 的 UITextView 似乎有類似方法可以取的一個字的 posiiton, React Native 卻沒有。
— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/30#issuecomment-166888501.
fixed in v1.0.41
內文閱覽模式 新增的搜尋欄位,需支援輸入Wylie轉寫的關鍵字。如下圖綠色框。 感謝!!