From e851de80b810dec3f6ad616eceac983f78684123 Mon Sep 17 00:00:00 2001 From: thatcher Date: Wed, 13 Feb 2013 16:50:23 -0500 Subject: [PATCH] added class names to viewer canvas and container per macreery's branch --- build.properties | 2 +- openseadragon.js | 5 ++++- src/viewer.js | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build.properties b/build.properties index 63b6475e..36ca2d97 100644 --- a/build.properties +++ b/build.properties @@ -6,7 +6,7 @@ PROJECT: openseadragon BUILD_MAJOR: 0 BUILD_MINOR: 9 -BUILD_ID: 115 +BUILD_ID: 116 BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} diff --git a/openseadragon.js b/openseadragon.js index 3c437354..885beb86 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -1,7 +1,7 @@ /*globals OpenSeadragon*/ /** - * @version OpenSeadragon 0.9.115 + * @version OpenSeadragon 0.9.116 * * @fileOverview *

@@ -3500,7 +3500,9 @@ $.Viewer = function( options ) { this.element = this.element || document.getElementById( this.id ); this.canvas = $.makeNeutralElement( "div" ); + //this.container = $.makeNeutralElement( "div" ); + this.canvas.className = "openseadragon-canvas"; (function( canvas ){ canvas.width = "100%"; canvas.height = "100%"; @@ -3510,6 +3512,7 @@ $.Viewer = function( options ) { canvas.left = "0px"; }( this.canvas.style )); + this.container.className = "openseadragon-container"; (function( container ){ container.width = "100%"; container.height = "100%"; diff --git a/src/viewer.js b/src/viewer.js index fa026253..85f507fd 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -170,6 +170,7 @@ $.Viewer = function( options ) { this.element = this.element || document.getElementById( this.id ); this.canvas = $.makeNeutralElement( "div" ); + this.canvas.className = "openseadragon-canvas"; (function( canvas ){ canvas.width = "100%"; canvas.height = "100%"; @@ -179,6 +180,8 @@ $.Viewer = function( options ) { canvas.left = "0px"; }( this.canvas.style )); + //the container is created through applying the ControlDock constructor above + this.container.className = "openseadragon-container"; (function( container ){ container.width = "100%"; container.height = "100%";