mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
Merge pull request #187 from iangilman/rtl
Drawer now works when the page is rtl
This commit is contained in:
commit
e955c402ac
@ -130,6 +130,10 @@ $.Drawer = function( options ) {
|
||||
this.normHeight = this.source.dimensions.y / this.source.dimensions.x;
|
||||
this.element = this.container;
|
||||
|
||||
// We force our container to ltr because our drawing math doesn't work in rtl.
|
||||
// This issue only affects our canvas renderer, but we do it always for consistency.
|
||||
// Note that this means overlays you want to be rtl need to be explicitly set to rtl.
|
||||
this.container.dir = 'ltr';
|
||||
|
||||
this.canvas.style.width = "100%";
|
||||
this.canvas.style.height = "100%";
|
||||
|
Loading…
Reference in New Issue
Block a user