mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16: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.top = position.y + "px";
|
||||
style.position = "absolute";
|
||||
|
||||
if (style.display != 'none') {
|
||||
style.display = 'block';
|
||||
}
|
||||
|
||||
if ( scales ) {
|
||||
style.width = size.x + "px";
|
||||
|
Loading…
Reference in New Issue
Block a user