Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relationship labels misplaced in Firefox when using <base href="/"> #28

Open
StephenThomson opened this issue Jan 11, 2018 · 1 comment
Labels

Comments

@StephenThomson
Copy link

StephenThomson commented Jan 11, 2018

In Firefox, when using <base href="/"> the text labels for the relationships are placed at 0,0 on the canvas rather than on the arrow. This is because the xlink in the textPath is a relative link and if the base href is set to / ff will resolve the link relative to that.

<textPath xmlns:xlink="http://www.w3.org/1999/xlink" **xlink:href="#link_1"** startOffset="20%">indicates</textPath>

If you need to use the Visualiser in Angular there is a work around: remove <base href="/"> from index.html and then in app.module.ts add

import {APP_BASE_HREF} from '@angular/common';

@NgModule({
  declarations: [AppComponent],
  imports: [routing /* or RouterModule */], 
  providers: [{provide: APP_BASE_HREF, useValue : '/' }]
]); 

https://stackoverflow.com/questions/34535163/angular-2-router-no-base-href-set

@gtback
Copy link
Contributor

gtback commented Jan 11, 2018

Thanks, @StephenThomson . I've seen this behavior before, and thought I had made an issue for it, but I'm not finding it, so thanks for opening this.

@gtback gtback added the bug label Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants