Added Bay Window Detail Render and window height spec to detail view
Added Bay Window Detail Render and window height spec to detail view

--- a/source/lib/scripts/CabinetEditor/Schematic/Other/WallInserts/BayWindow.js
+++ b/source/lib/scripts/CabinetEditor/Schematic/Other/WallInserts/BayWindow.js
@@ -2,6 +2,7 @@
 	[
 	 	'CabinetEditor/Schematic/SchematicObject',
 	 	'CabinetEditor/Schematic/Other/WallInserts/WallInsert',
+	 	'CabinetEditor/Helper',
 
 	 	'Geometry/Point2D',
 
@@ -10,6 +11,7 @@
 	function(
 		SchematicObject,
 		WallInsert,
+		Helper,
 
 		Point,
 
@@ -140,6 +142,38 @@
 
 		};
 
+		BayWindow.prototype.renderDetailView = function(ctx, cvs){
+
+			var scale_factor, x, y;
+
+			ctx.save();
+
+			scale_factor = Helper.calculateDetailViewScaleFactor(cvs, this.w, this.d);
+			x = cvs.width/2/scale_factor;
+			y = cvs.height/2/scale_factor;
+
+			ctx.scale(scale_factor, scale_factor);
+			ctx.translate(x, y);
+
+			ctx.lineWidth = 1;
+			ctx.strokeRect(- this.w / 2, -this.d / 2, this.w, this.d);
+			ctx.beginPath();
+			ctx.moveTo(- this.centerWidth / 2, -this.d / 2);
+			ctx.lineTo(- this.centerWidth / 2,  this.d / 2);
+			ctx.moveTo(  this.centerWidth / 2, -this.d / 2);
+			ctx.lineTo(  this.centerWidth / 2,  this.d / 2);
+			ctx.stroke();
+
+			ctx.font = "3pt Arial"; // TODO This shouldent be like this figure it out and fix it
+
+			txt = '▼'+Helper.nearestMultiple(this.z, 0.0625)+'"▼';	// TODO: global variable for number precision
+			txt_size = ctx.measureText(txt).width;
+			ctx.fillText(txt, -txt_size/2, this.d/2+16.0/scale_factor+(5/scale_factor));
+
+			ctx.restore();
+			
+		};
+
 		Class.register(BayWindow);
 
 		return BayWindow;

--- a/source/lib/scripts/CabinetEditor/Schematic/Other/WallInserts/Door.js
+++ b/source/lib/scripts/CabinetEditor/Schematic/Other/WallInserts/Door.js
@@ -32,7 +32,7 @@
 
 			var data;
 
-			data = Door.prototype.data.call(this);
+			data = Door.superClass.prototype.data.call(this);
 			data.style = this.style;
 			data.hinge = this.hinge;
 

--- a/source/lib/scripts/CabinetEditor/Schematic/Other/WallInserts/Window.js
+++ b/source/lib/scripts/CabinetEditor/Schematic/Other/WallInserts/Window.js
@@ -89,8 +89,14 @@
 
 			Window.renderFrench(ctx, this.style, this.type, - this.w / 2, - this.d / 2, this.w, this.d);
 
+			ctx.font = "3pt Arial"; // TODO This shouldent be like this figure it out and fix it
+
+			txt = '▼'+Helper.nearestMultiple(this.z, 0.0625)+'"▼';	// TODO: global variable for number precision
+			txt_size = ctx.measureText(txt).width;
+			ctx.fillText(txt, -txt_size/2, this.d/2+16.0/scale_factor+(5/scale_factor));
+
 			ctx.restore();
-
+			
 		};
 
 		Window.prototype.renderFrontView = function(ctx){