mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Merge pull request #303 from msalsbery/Button-Images
Button Image Alignment Fix (#30)
This commit is contained in:
commit
db81879a0f
@ -129,11 +129,9 @@ $.Button = function( options ) {
|
||||
this.imgGroup = $.makeTransparentImage( this.srcGroup );
|
||||
this.imgHover = $.makeTransparentImage( this.srcHover );
|
||||
this.imgDown = $.makeTransparentImage( this.srcDown );
|
||||
this.imgDiv = $.makeNeutralElement( "div" );
|
||||
|
||||
this.element.appendChild( this.imgRest );
|
||||
this.element.appendChild( this.imgGroup );
|
||||
this.element.appendChild( this.imgHover );
|
||||
this.element.appendChild( this.imgDown );
|
||||
this.imgDiv.style.position = "relative";
|
||||
|
||||
this.imgGroup.style.position =
|
||||
this.imgHover.style.position =
|
||||
@ -160,6 +158,12 @@ $.Button = function( options ) {
|
||||
this.imgDown.style.top =
|
||||
"";
|
||||
}
|
||||
|
||||
this.imgDiv.appendChild( this.imgRest );
|
||||
this.imgDiv.appendChild( this.imgGroup );
|
||||
this.imgDiv.appendChild( this.imgHover );
|
||||
this.imgDiv.appendChild( this.imgDown );
|
||||
this.element.appendChild( this.imgDiv );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user