Changeset 4794
- Timestamp:
- 06/09/08 07:19:19 (3 months ago)
- Location:
- branches/5.2
- Files:
-
- 4 modified
-
WebContent/ITMILL/themes/default/gridlayout/gridlayout.css (modified) (1 diff)
-
WebContent/ITMILL/themes/default/styles.css (modified) (1 diff)
-
src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java (modified) (3 diffs)
-
src/com/itmill/toolkit/tests/tickets/Ticket1572.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2/WebContent/ITMILL/themes/default/gridlayout/gridlayout.css
r4792 r4794 11 11 padding-right: 18px; 12 12 } 13 14 .i-gridlayout-grid { 15 margin:0; 16 padding:0; 17 border-collapse: collapse; 18 border:0; 19 } 20 21 .i-gridlayout-cell { 22 margin:0; 23 padding:0; 24 } 25 26 .i-gridlayout-spacing .i-gridlayout-cell { 27 padding-left: 15px; 28 padding-top:15px; 29 } 30 31 .i-gridlayout-spacing .i-gridlayout-firstcol { 32 padding-left: 0; 33 } 34 .i-gridlayout-spacing .i-gridlayout-firstrow { 35 padding-top: 0; 36 } -
branches/5.2/WebContent/ITMILL/themes/default/styles.css
r4792 r4794 513 513 } 514 514 515 .i-gridlayout-grid { 516 margin:0; 517 padding:0; 518 border-collapse: collapse; 519 border:0; 520 } 521 522 .i-gridlayout-cell { 523 margin:0; 524 padding:0; 525 } 526 527 .i-gridlayout-spacing .i-gridlayout-cell { 528 padding-left: 15px; 529 padding-top:15px; 530 } 531 .i-gridlayout-spacing .i-gridlayout-firstcol { 532 padding-left: 0; 533 } 534 .i-gridlayout-spacing .i-gridlayout-firstrow { 535 padding-top: 0; 536 } 537 515 538 .i-Notification { 516 539 font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif; -
branches/5.2/src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java
r4792 r4794 57 57 margins.hasLeft()); 58 58 59 setStyleName(margin, CLASSNAME + "-" + "spacing", uidl 60 .hasAttribute("spacing")); 61 59 62 grid.updateFromUIDL(uidl, client); 60 63 } … … 79 82 public Grid() { 80 83 super(); 81 setStyleName(CLASSNAME );84 setStyleName(CLASSNAME + "-grid"); 82 85 } 83 86 … … 133 136 } 134 137 135 getCellFormatter() 136 .setAlignment(row, column, ha, va); 138 FlexCellFormatter formatter = (FlexCellFormatter) getCellFormatter(); 139 140 formatter.setAlignment(row, column, ha, va); 137 141 138 142 // set col span 139 ((FlexCellFormatter) getCellFormatter()) 140 .setColSpan(row, column, w); 143 formatter.setColSpan(row, column, w); 144 145 String styleNames = CLASSNAME + "-cell"; 146 if (column == 0) { 147 styleNames += " " + CLASSNAME + "-firstcol"; 148 } 149 if (row == 0) { 150 styleNames += " " + CLASSNAME + "-firstrow"; 151 } 152 formatter.setStyleName(row, column, styleNames); 141 153 142 154 // Set cell height -
branches/5.2/src/com/itmill/toolkit/tests/tickets/Ticket1572.java
r4792 r4794 47 47 48 48 Button b2 = new Button("next spacing state"); 49 b .addListener(new Button.ClickListener() {49 b2.addListener(new Button.ClickListener() { 50 50 public void buttonClick(ClickEvent event) { 51 51 nextSpacingState(); … … 102 102 } 103 103 104 private boolean spacing = true; 105 104 106 private void nextSpacingState() { 105 spacingstate.setValue(" // TODO Auto-generated method stub"); 107 spacing = !spacing; 108 if (spacing) { 109 gl.setSpacing(true); 110 spacingstate.setValue("Spacing on"); 111 } else { 112 gl.setSpacing(false); 113 spacingstate.setValue("Spacing off"); 114 } 106 115 } 107 116
