FlexTable cells lose property after deleting previous row

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

FlexTable cells lose property after deleting previous row

Postby ashouric » Sat Sep 30, 2006 9:48 pm

Dear all,

In FlexTable, if a widget cell colspan is made to 2, after a previous row is deleted, it loses this property (because it moved one level higher), I guess it should keep its settings.

For example, delete Label 'Three', and 'Four', you will find that 'Five' colspan has been removed.

Code: Select all
public class Test extends Composite {

   public Test() {

      final FlexTable flexTable = new FlexTable();

      final Label oneLabel = new Label("One");
      flexTable.setWidget(0, 0, oneLabel);

      final Label twoLabel = new Label("Two");
      flexTable.setWidget(0, 1, twoLabel);

      final Label threeLabel = new Label("Three");
      flexTable.setWidget(1, 0, threeLabel);

      final Label fourLabel = new Label("Four");
      flexTable.setWidget(1, 1, fourLabel);

      final Label fiveLabel = new Label("Five");
      flexTable.setWidget(2, 0, fiveLabel);
      flexTable.getFlexCellFormatter().setColSpan(2, 0, 2);

Posts: 75
Joined: Sat Sep 30, 2006 9:13 pm

Postby Konstantin.Scheglov » Sun Oct 01, 2006 3:30 am

Aha, now I can reproduce it. Fixed.

Try new build.
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests