Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359575

Summary: [RBD]FontWeight on DataGrid doesn't work
Product: z_Archived Reporter: broy2
Component: EDTAssignee: 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:
Description Flags
DataGrid
none
fontWeight
none
fontWeight none

Description broy2 CLA 2011-09-30 10:57:35 EDT
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,
Comment 1 broy2 CLA 2011-09-30 11:10:18 EDT
Created attachment 204393 [details]
fontWeight
Comment 2 broy2 CLA 2011-09-30 11:15:35 EDT
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.
Comment 3 Huang Ji Yong CLA 2011-10-08 05:20:00 EDT
The fontWeight works except the cells in the header. This behavior is the same as RBD. Do you think it's a defect?
Comment 4 broy2 CLA 2011-10-08 09:40:09 EDT
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
Comment 5 broy2 CLA 2011-10-08 10:08:27 EDT
I just got the 201110080901 build, and the fontWeight is working now.
Comment 6 Lisa Lasher CLA 2011-11-08 13:22:13 EST
Deferring to 1.0 - this is a low priority defect that also occurs in RBD
Comment 7 fahua jin CLA 2011-12-16 02:11:37 EST
Fixed indirectly.

Thomas, could you please assign people to verify the defect? Thanks.
Comment 8 Lisa Lasher CLA 2012-01-13 14:25:08 EST
Thomas, please have someone verify this fix.  It was originally opened by Brenda.
Comment 9 Huang Ji Yong CLA 2012-02-20 00:24:39 EST
Verified in build  0.8.0.v201202190901-1Co-FjuJ6QMNRcrynsZh8h8C