在选项卡控件下的工具条上包含一个按钮

时间:2012-04-27 19:43:08

标签: gwt smartgwt

当我在选项卡控件中分配工具条上的按钮时,应用程序就会待命,不会响应。这是我的代码:

    ToolStrip toolStrip_3 = new ToolStrip();
    toolStrip_3.setWidth100();
    toolStrip_3.setHeight("20px");
    toolStrip_3.setReverseOrder(true);

    ToolStripButton button = new ToolStripButton(CONSTANTS.notesAddButton_title());
    toolStrip_3.addButton(button);
    conflictLayout.addMember(toolStrip_3);

当我注释掉这一行时:

//conflictLayout.addMember(toolStrip_3);

应用程序没有问题。

1 个答案:

答案 0 :(得分:0)

尝试使用:

toolStrip_3.setHeight(20);

而不是:

toolStrip_3.setHeight("20px");