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

Wrong Outline #28

Open
imambungo opened this issue Apr 11, 2018 · 2 comments
Open

Wrong Outline #28

imambungo opened this issue Apr 11, 2018 · 2 comments
Labels

Comments

@imambungo
Copy link

Description

Wrong tag level in outline view.

Expected Behavior

The body tag should be in the same level as the head tag.
nahbug2

Actual Behavior

It take the body tag as a child of the head tag.
nahbug

Possible Fix

It's happen when the body tag doesn't have any tag within it. I think the body tag should be the same level as the head tag because it is on the outside of the head tag.

Context

It's confusing, it's not just the body tag, but also all tag that doesn't have any tag within it.

Your Environment

  • Version used: 0.4.2
  • Operating System and version (desktop): Windows 10

Sorry for bad english.

@liuderchi liuderchi added the bug label Apr 11, 2018
@liuderchi
Copy link
Owner

liuderchi commented Apr 26, 2018

Confirm repro. Sorry for the late reply.

After examining the debug message, it's more likely a CSS styling issue.
body tag without child node has more left-padding space, which is unexpected.

You may test it by moving whole <body></body> to prior to head tag.
Probably looks like this:

screen shot 2018-04-26 at 10 20 15 pm

@liuderchi
Copy link
Owner

@imambungo I've created an issue to atom-ide-ui team that ide-html depends on.

Hopefully we can find the root cause and fix it.

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