Skip to content

Fix graph minimap by removing CSS property #899

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

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

chihuahua
Copy link
Member

@chihuahua chihuahua commented Jan 23, 2018

Before this change, the graph explorer minimap had been broken, as
discovered by @nfelt during manual testing. Specifically, the graph
would not render within the minimap.

Surprisingly, this CSS specification within the
tf-debugger-initial-dialog component had been hiding the SVG element
for the rendered graph within the minimap:

image

:host:not([_open]) {
  display: none;
}

That seems odd. The :host selector refers to the root of the shadow
DOM for the current component, in this case
tf-debugger-initial-dialog. That dialog is only rendered by the
debugger plugin - the debugger dashboard is not even constructed when
the graph dashboard (containing the minimap) is rendered.

I perused the vulcanized HTML and JS, and no issues seem to stand out
there.

This change solves the immediate problem of the minimap not rendering by
making the selector more specific and apply only to the component. I
will later investigate what is causing a CSS specification within the
tf-debugger-initial-dialog component to affect the graph explorer
minimap.

The minimap now renders:

image

The dialog (within the debugger dashboard) still renders as expected:

image

The dialog still hides as expected:

image

Before this change, the graph explorer minimap had been broken, as
discovered by @nfelt during manual testing. Specifically, the graph
would not render within the minimap.

Surprisingly, this CSS specification within the
`tf-debugger-initial-dialog` component had been hiding the SVG element
for the rendered graph within the minimap:

```css
:host:not([_open]) {
  display: none;
}
```

That seems odd. The `:host` selector refers to the root of the shadow
DOM for the current component, in this case
`tf-debugger-initial-dialog`. That dialog is only rendered by the
debugger plugin - the debugger dashboard is not even constructed when
the graph dashboard (containing the minimap) is rendered.

I perused the vulcanized HTML and JS, and no issues seem to stand out
there.

This change solves the immediate problem of the minimap not rendering by
making the selector more specific and apply only to the component. I
will later investigate what is causing a CSS specification within the
`tf-debugger-initial-dialog` component to affect the graph explorer
minimap.
@chihuahua chihuahua requested review from jart and nfelt January 23, 2018 04:34
@chihuahua chihuahua merged commit dcb54dd into tensorflow:master Jan 23, 2018
nfelt pushed a commit to nfelt/tensorboard that referenced this pull request Feb 7, 2018
Before this change, the graph explorer minimap had been broken, as
discovered by @nfelt during manual testing. Specifically, the graph
would not render within the minimap.

Surprisingly, this CSS specification within the
`tf-debugger-initial-dialog` component had been hiding the SVG element
for the rendered graph within the minimap:

```css
:host:not([_open]) {
  display: none;
}
```

That seems odd. The `:host` selector refers to the root of the shadow
DOM for the current component, in this case
`tf-debugger-initial-dialog`. That dialog is only rendered by the
debugger plugin - the debugger dashboard is not even constructed when
the graph dashboard (containing the minimap) is rendered.

I perused the vulcanized HTML and JS, and no issues seem to stand out
there.

This change solves the immediate problem of the minimap not rendering by
making the selector more specific and apply only to the component. I
will later investigate what is causing a CSS specification within the
`tf-debugger-initial-dialog` component to affect the graph explorer
minimap.
nfelt pushed a commit that referenced this pull request Feb 7, 2018
Before this change, the graph explorer minimap had been broken, as
discovered by @nfelt during manual testing. Specifically, the graph
would not render within the minimap.

Surprisingly, this CSS specification within the
`tf-debugger-initial-dialog` component had been hiding the SVG element
for the rendered graph within the minimap:

```css
:host:not([_open]) {
  display: none;
}
```

That seems odd. The `:host` selector refers to the root of the shadow
DOM for the current component, in this case
`tf-debugger-initial-dialog`. That dialog is only rendered by the
debugger plugin - the debugger dashboard is not even constructed when
the graph dashboard (containing the minimap) is rendered.

I perused the vulcanized HTML and JS, and no issues seem to stand out
there.

This change solves the immediate problem of the minimap not rendering by
making the selector more specific and apply only to the component. I
will later investigate what is causing a CSS specification within the
`tf-debugger-initial-dialog` component to affect the graph explorer
minimap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants