IDEMPIERE-848 Improve time editor

This commit is contained in:
Carlos Ruiz 2013-04-10 09:52:42 -05:00
parent e689033d90
commit b561e4554e
2 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class DatetimeBox extends Panel {
dateBox.setCols(10); dateBox.setCols(10);
timeBox = new Timebox(); timeBox = new Timebox();
timeBox.setCols(10); timeBox.setCols(10);
timeBox.setButtonVisible(false); //timeBox.setButtonVisible(false);
appendChild(dateBox); appendChild(dateBox);
appendChild(timeBox); appendChild(timeBox);
this.setHflex("1"); this.setHflex("1");

View File

@ -98,6 +98,7 @@ public class WTimeEditor extends WEditor implements ContextMenuListener
private void init() private void init()
{ {
getComponent().setCols(10);
popupMenu = new WEditorPopupMenu(false, false, isShowPreference()); popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
popupMenu.addMenuListener(this); popupMenu.addMenuListener(this);
addChangeLogMenu(popupMenu); addChangeLogMenu(popupMenu);