Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
0c8f0416
Commit
0c8f0416
authored
Jan 14, 2019
by
Dominik Prokop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move panel width/height calculation to PanelChrome
parent
b3b1c21d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
public/app/features/dashboard/dashgrid/PanelChrome.tsx
+4
-2
public/app/plugins/panel/gauge/GaugePanel.tsx
+2
-3
No files found.
public/app/features/dashboard/dashgrid/PanelChrome.tsx
View file @
0c8f0416
...
...
@@ -19,6 +19,8 @@ import { DashboardModel } from '../dashboard_model';
import
{
PanelPlugin
}
from
'app/types'
;
import
{
TimeRange
}
from
'@grafana/ui'
;
import
variables
from
'sass/_variables.scss'
;
export
interface
Props
{
panel
:
PanelModel
;
dashboard
:
DashboardModel
;
...
...
@@ -122,8 +124,8 @@ export class PanelChrome extends PureComponent<Props, State> {
timeSeries=
{
timeSeries
}
timeRange=
{
timeRange
}
options=
{
panel
.
getOptions
(
plugin
.
exports
.
PanelDefaults
)
}
width=
{
width
}
height=
{
height
-
PANEL_HEADER_HEIGHT
}
width=
{
width
-
2
*
variables
.
panelHorizontalPadding
}
height=
{
height
-
PANEL_HEADER_HEIGHT
-
variables
.
panelVerticalPadding
}
renderCounter=
{
renderCounter
}
/>
</
div
>
...
...
public/app/plugins/panel/gauge/GaugePanel.tsx
View file @
0c8f0416
...
...
@@ -3,7 +3,6 @@ import { GaugeOptions, PanelProps, NullValueMode } from '@grafana/ui';
import
{
getTimeSeriesVMs
}
from
'app/viz/state/timeSeries'
;
import
Gauge
from
'app/viz/Gauge'
;
import
variables
from
'sass/_variables.scss'
;
interface
Props
extends
PanelProps
<
GaugeOptions
>
{}
...
...
@@ -20,8 +19,8 @@ export class GaugePanel extends PureComponent<Props> {
<
Gauge
timeSeries=
{
vmSeries
}
{
...
this
.
props
.
options
}
width=
{
width
-
2
*
variables
.
panelHorizontalPadding
}
height=
{
height
-
variables
.
panelVerticalPadding
}
width=
{
width
}
height=
{
height
}
/>
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment