我希望 UI 选项卡显示完整的文本。我尝试手动调整选项卡的大小,但没有奏效。我通过 FireBug 进行了检查,这表明选项卡实际上正在重新调整大小,但方式不正确。看到这张图片。
以下是相关代码:
// Left tab starts here
final TabSet companyDetailsLeftTabSet = new TabSet();
//companyDetailsLeftTabSet.setAutoWidth();
//companyDetailsLeftTabSet.setOverflow(Overflow.VISIBLE);
companyDetailsLeftTabSet.setMargin(20);
companyDetailsLeftTabSet.setTabBarPosition(Side.TOP);
//companyDetailsLeftTabSet.setTabBarThickness(25);
companyDetailsLeftTabSet.setWidth(940);
companyDetailsLeftTabSet.setHeight(550);
companyDetailsLeftTabSet.setStyleName("text");
Tab companyInformationsTab = new Tab(AnisConstants.COMPANYINFO);
Tab relationTab = new Tab(AnisConstants.RELATIONS);
Tab legalInformationsTab = new Tab(AnisConstants.LEGALINFORMATIONS);
Tab loanTab = new Tab(AnisConstants.LOANS);
Tab assetTab = new Tab(AnisConstants.ASSETS);
Tab scoringTab = new Tab(AnisConstants.SCORING);
companyInformationsTab.setWidth(150);
relationTab.setWidth(150);
legalInformationsTab.setWidth(150);
loanTab.setWidth(150);
assetTab.setWidth(150);
scoringTab.setWidth(150);
companyDetailsLeftTabSet.addTab(companyInformationsTab);
companyDetailsLeftTabSet.addTab(relationTab);
companyDetailsLeftTabSet.addTab(legalInformationsTab);
companyDetailsLeftTabSet.addTab(loanTab);
companyDetailsLeftTabSet.addTab(assetTab);
companyDetailsLeftTabSet.addTab(scoringTab);
VLayout vpnlCompany = new VLayout();
vpnlCompany.addMember(btnSave);
vpnlCompany.addMember(companyDetailsLeftTabSet);
这是另外一张图片,问题选项卡以红色突出显示。
如果您需要更多信息,请发表评论。