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

Lines routed outside visible area #19

Closed
morganrallen opened this issue Dec 1, 2014 · 6 comments
Closed

Lines routed outside visible area #19

morganrallen opened this issue Dec 1, 2014 · 6 comments
Labels
Type: Bug / Error Something isn't working or is incorrect

Comments

@morganrallen
Copy link

image

@morganrallen
Copy link
Author

If the path has a label everything is appropriately in the visible area.

@alexander-ivanov
Copy link

I have almost the same problem with large LR diagrams. They are just cut from the right side, no scrolling is avaliable.

graph LR;  
                A[Start]-->B{a = '1,2'};  
                B-->|True|C[test = 1];
                B-->|False|Z[Store];
                C-->D{condition};
                D-->|True|E[test = 2];
                D-->|False|F[test = 3];
                E-->G{condition2 = ''};
                F-->G;
                G-->|True|H[test = 4];
                G-->|False|I[test = 5];
                H-->J{condition3};
                I-->J;
                J-->|True|K[test = 6];
                J-->|False|L;
                K-->L[Print];
                L-->M[Any Action];
                M-->N[Any Other Action];
                N-->Z;

@morganrallen
Copy link
Author

It should be the same problem either way, the path's aren't taken into account when calculating the margins/offset how over it's done.

knsv added a commit that referenced this issue Dec 5, 2014
Better handling of width. Instead uf using width 100% the width is set to the width of the graph. Should help issue #19.
@knsv
Copy link
Collaborator

knsv commented Dec 5, 2014

Could replicate the issue from Alexanders code and found the problem. The fix is committed and will be included in the next release.

@knsv knsv added the Type: Bug / Error Something isn't working or is incorrect label Dec 5, 2014
@knsv
Copy link
Collaborator

knsv commented Dec 11, 2014

Closing this one. Let me know if the problem persists.

@knsv knsv closed this as completed Dec 11, 2014
knsv pushed a commit that referenced this issue Apr 26, 2020
@dudung
Copy link

dudung commented Oct 9, 2022

Could replicate the issue from Alexanders code and found the problem. The fix is committed and will be included in the next release.

Could you assist me with this problem since I still have that, e.g. here, where scrolling is shown but a line above still not be taking into account , but it works locally with Chrome Extension Markdow Viewer Thank you for your help and guidance.

flowchart LR
  %% links
  phys --- chem --- biol --- econ
  agri --- econ
  phys --- astr & aero
  phys & chem & biol --- agri & geol & phar
  chem & biol & phar --- medi
  math --- aero & astr & biol & chem & econ & geol & phys & phar
  aero --- astr
  math & phys ---- info --- stat --- econ
  math ----- stat
  geol & phys & econ ---- mine
  %% elements
  aero(( Aeronautics ))
  agri(( Agriculture ))
  astr(( Astronomy ))
  biol(( Biology))
  chem(( Chemistry ))
  econ(( Economics ))
  geol(( Geology ))
  info(( Informatics ))
  math(( Mathematics ))
  medi(( Medicine ))
  mine(( Mining ))
  phar(( Pharmacy))
  phys(( Physics ))
  stat(( Statistics ))
  %% pages
  click aero "https://github.com/dudung/moparc/tree/main/aero" _self
  click agri "https://github.com/dudung/moparc/tree/main/agri" _self
  click astr "https://github.com/dudung/moparc/tree/main/astr" _self
  click biol "https://github.com/dudung/moparc/tree/main/biol" _self
  click chem "https://github.com/dudung/moparc/tree/main/chem" _self
  click econ "https://github.com/dudung/moparc/tree/main/econ" _self
  click geol "https://github.com/dudung/moparc/tree/main/geol" _self
  click geol "https://github.com/dudung/moparc/tree/main/info" _self
  click math "https://github.com/dudung/moparc/tree/main/math" _self
  click medi "https://github.com/dudung/moparc/tree/main/medi" _self
  click mine "https://github.com/dudung/moparc/tree/main/mine" _self
  click phar "https://github.com/dudung/moparc/tree/main/phar" _self
  click phys "https://github.com/dudung/moparc/tree/main/phys" _self
  click stat "https://github.com/dudung/moparc/tree/main/stat" _self
  %% styles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

4 participants