TWaver Forums
http://twaver.servasoft.com/forum/

怎么让label文字竖着排?
http://twaver.servasoft.com/forum/viewtopic.php?f=35&t=5725
Page 1 of 1

Author:  Paddy [ 2017-04-19 15:34 ]
Post subject:  怎么让label文字竖着排?

可以重写getLabel方法。
Code:
network.getLabel = function (data) {
    var name = data.getName();
    var result = '';
    for (var i=0; i<name.length; i++) {
        result += name[i];
        if (i !== name.length - 1) {
             result += '\n';
        }
    }
    return result;
};

Page 1 of 1 All times are UTC + 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/
./cache/ is NOT writable.