0
由于某些原因,当我添加一个可选列表时,每个单元格中的标签在行高增加时不断裁剪。我相信这可能是因为原始行高度为20,所以列表会自动裁剪任何超出行高为20的框的任何东西;所以,我的问题是:是否有改变这种功能?Flash AS3列表组件标签裁剪?
这里是它的外观的截图,如: http://s7.postimg.org/6wqxfb1qz/Screen_Shot_2013_10_10_at_8_31_49_PM.png
这里是我的代码:
list = new List();
list.rowHeight = 50;
list.setRendererStyle("contentPadding", 5);
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.size = 20;
myTextFormat.font = "Microsoft Sans Serif";
list.setRendererStyle("textFormat", myTextFormat);
list.width = 118;
list.height = stage.stageHeight - 60;
list.focusEnabled = false;
list.setStyle("contentPadding", 5);
addCategories();
list.move(0, 50);
addChild(list);
补充说,不给我一个编译器错误说“variableRowHeight”没有被发现。我相信这适用于flex,但不适用于as3。还有别的事吗? – dgTheUser