| Summary: | [RBD]FontWeight on DataGrid doesn't work | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 | ||||||||
| Component: | EDT | Assignee: | Thomas Wu <wxwu> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | hjiyong, jinfahua, wxwu | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 204393 [details]
fontWeight
I've rolled the display size problem into Bug 359447. When the dataGrid displays correctly, the fontSize works. But the fontWeight still doesn't work. Screen shot attached. The fontWeight works except the cells in the header. This behavior is the same as RBD. Do you think it's a defect? Created attachment 204800 [details]
fontWeight
The exact same code is shown in the Design view of EDT and RBD.
The are very different in appearance.
The RBD view looks correct.
handler myRUIhandler type RUIhandler {initialUI = [ ui ],onConstructionFunction = start, cssFile="css/myRUIproject.css", title="myRUIhandler"}
ui GridLayout{ columns = 3, rows = 4, cellPadding = 4, children = [ TextLabel3, TextLabel2, TextLabel1, TextLabel, DataGrid1, Button, Button1, DataGrid ] };
DataGrid DataGrid{ layoutData = new GridLayoutData{ row = 1, column = 1 },
behaviors = [ ],
headerBehaviors = [ ],
columns = [
new DataGridColumn{name = "field1", displayName = "Column 1 Header", width=120},
new DataGridColumn{name = "field2", displayName = "Column 2 Header", width=120}
],
data = [
new Dictionary { field1 = "Row 1, Column 1", field2 = "Row 1, Column 2"},
new Dictionary { field1 = "Row 2, Column 1", field2 = "Row 2, Column 2"}
]
};
Button DojoButton{ layoutData = new GridLayoutData{ row = 3, column = 1 }, text = "Button" };
Button1 Button{ layoutData = new GridLayoutData{ row = 4, column = 1 }, text="Button",
fontWeight = "bold" };
DataGrid1 DataGrid{ layoutData = new GridLayoutData{ row = 2, column = 1 },
behaviors = [ ],
headerBehaviors = [ ],
columns = [
new DataGridColumn{name = "field1", displayName = "Column 1 Header", width=120},
new DataGridColumn{name = "field2", displayName = "Column 2 Header", width=120}
],
data = [
new Dictionary { field1 = "Row 1, Column 1", field2 = "Row 1, Column 2"},
new Dictionary { field1 = "Row 2, Column 1", field2 = "Row 2, Column 2"}
],
fontWeight = "bold"
};
TextLabel TextLabel{ layoutData = new GridLayoutData{ row = 1, column = 2 }, text = "fontweight = none" };
TextLabel1 TextLabel{ layoutData = new GridLayoutData{ row = 2, column = 2 }, text = "fontweight = bold",
fontWeight = "bold" };
TextLabel2 TextLabel{ layoutData = new GridLayoutData{ row = 3, column = 2 }, text = "fontweight = none" };
TextLabel3 TextLabel{ layoutData = new GridLayoutData{ row = 4, column = 2 }, text = "fontweight = bold",
fontWeight = "bold" };
function start()
end
end
I just got the 201110080901 build, and the fontWeight is working now. Deferring to 1.0 - this is a low priority defect that also occurs in RBD Fixed indirectly. Thomas, could you please assign people to verify the defect? Thanks. Thomas, please have someone verify this fix. It was originally opened by Brenda. Verified in build 0.8.0.v201202190901-1Co-FjuJ6QMNRcrynsZh8h8C |
Created attachment 204392 [details] DataGrid Drop a DataGrid on a RUIHandler. It doesn't display correctly. And changing the fontSize and fontWeight doesn't do anything. Screen shot attached. EDT is on the right, RBD on the left,