SenchaTouch2 - NestedList - Title “cut off”

早过忘川 提交于 2020-01-06 18:44:14

问题


I've created a NestedList with some data inside .. everything works as expected. But there is one weird thing..

The last 2 characters of the title are always replaced with dots - I don't know why ...

Any explanations?


回答1:


According to http://www.sencha.com/forum/showthread.php?228621-Short-titles-in-title-bar-also-gets-clipped-with-text-ellipsis it it fixed in 2.1.0-b2

As far as I judge it is CSS issue, because on the real device (iPhone test) no such quirks

Cheers, Oleg




回答2:


This can be fixed with this solution, which only shows dots when necessary:

.x-title .x-innerhtml:after {
    content: '';
    display: inline-block;
    width: .3em; /* equal to the amount of padding on the element */
}


来源:https://stackoverflow.com/questions/11796915/senchatouch2-nestedlist-title-cut-off

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!