mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 07:06:10 +03:00
When overlays are hidden, keep them that way
Overlays previously had their display set to 'block' each time they were drawn. Now if their display is 'none' their display property is left alone
This commit is contained in:
parent
cdf1942202
commit
b1c6a75c49
@ -282,7 +282,10 @@
|
|||||||
style.left = position.x + "px";
|
style.left = position.x + "px";
|
||||||
style.top = position.y + "px";
|
style.top = position.y + "px";
|
||||||
style.position = "absolute";
|
style.position = "absolute";
|
||||||
|
|
||||||
|
if (style.display != 'none') {
|
||||||
style.display = 'block';
|
style.display = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
if ( scales ) {
|
if ( scales ) {
|
||||||
style.width = size.x + "px";
|
style.width = size.x + "px";
|
||||||
|
Loading…
Reference in New Issue
Block a user