Ticket #1248 (closed defect: fixed)

Opened 8 months ago

Last modified 3 months ago

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

Changed 7 months ago by Joonas Lehtinen

  • milestone set to User Interface Library 4.1.1

Changed 6 months ago by Jani Laakso

  • version changed from 4.1.0 to 5.0.0
  • milestone deleted

Changed 4 months ago by Joonas Lehtinen

  • milestone set to User Interface Library 5.2.1

Changed 3 months ago by Joonas Lehtinen

  • milestone changed from User Interface Library 5.2 backlog to User Interface Library 5.2.2

Milestone User Interface Library 5.2 backlog deleted

Changed 3 months ago by Joonas Lehtinen

  • priority changed from undefined to minor
  • component changed from undefined to gwt-adapter-client

Please validate if this is still true for 5.2.1

Changed 3 months ago by Marc Englund

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from User Interface Library 5.2.3 to User Interface Library 5.2.2

Fixed in [4776]

Note: See TracTickets for help on using tickets.