Ticket #1248 (closed defect: fixed)
Table: Column alignments do not work with buttons in switch mode
| Reported by: | Jonatan Kronqvist | Owned by: | Jani Laakso |
|---|---|---|---|
| Priority: | minor | Milestone: | User Interface Library 5.2.2 |
| Component: | gwt-adapter-client | Version: | 5.0.0 |
| Keywords: | Cc: | ||
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description
Buttons in switch mode (checkboxes) are always left-aligned in tables. These should also be aligned according to the column alignment.
This is tested and confirmed with the latest 4.x version and the 5.0.0 release on Leopard with FireFox? 2 and Safari 3 browsers.
The problem can be reproduced by changing the initTable() method in TableDemo?.java into the following:
private void initTable() {
// init table
table.setCaption(TABLE_CAPTION);
table.setPageLength(10);
table.setSelectable(true);
table.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);
table.setColumnCollapsingAllowed(true);
table.setColumnReorderingAllowed(true);
table.setSelectable(true);
// this class handles table actions (see handleActions method below)
table.addActionHandler(this);
table.setDescription(ACTION_DESCRIPTION);
/* Centered switch button ahoy */
table.addContainerProperty("centered", Button.class, null, "Centered", null, Table.ALIGN_CENTER);
Item item = table.addItem("test");
Button swBut = new Button("");
swBut.setSwitchMode(true);
item.getItemProperty("centered").setValue(swBut);
}
Change History
Note: See
TracTickets for help on using
tickets.
