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
55af0ce2
Commit
55af0ce2
authored
Jul 21, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui): fix scrolling issue when editors are open, fixes #2371
parent
6b25453f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
public/app/directives/dashEditLink.js
+0
-16
No files found.
public/app/directives/dashEditLink.js
View file @
55af0ce2
...
@@ -38,19 +38,7 @@ function (angular, $) {
...
@@ -38,19 +38,7 @@ function (angular, $) {
var
editorScope
;
var
editorScope
;
var
lastEditor
;
var
lastEditor
;
function
hideScrollbars
(
value
)
{
if
(
value
)
{
window
.
scrollTo
(
0
,
0
);
document
.
documentElement
.
style
.
overflow
=
'hidden'
;
// firefox, chrome
document
.
body
.
scroll
=
"no"
;
// ie only
}
else
{
document
.
documentElement
.
style
.
overflow
=
'auto'
;
document
.
body
.
scroll
=
"yes"
;
}
}
function
hideEditorPane
()
{
function
hideEditorPane
()
{
hideScrollbars
(
false
);
if
(
editorScope
)
{
editorScope
.
dismiss
();
}
if
(
editorScope
)
{
editorScope
.
dismiss
();
}
}
}
...
@@ -77,7 +65,6 @@ function (angular, $) {
...
@@ -77,7 +65,6 @@ function (angular, $) {
elem
.
empty
();
elem
.
empty
();
lastEditor
=
null
;
lastEditor
=
null
;
editorScope
=
null
;
editorScope
=
null
;
hideScrollbars
(
false
);
if
(
editview
)
{
if
(
editview
)
{
var
urlParams
=
$location
.
search
();
var
urlParams
=
$location
.
search
();
...
@@ -88,9 +75,6 @@ function (angular, $) {
...
@@ -88,9 +75,6 @@ function (angular, $) {
}
}
};
};
// hide page scrollbars while edit pane is visible
hideScrollbars
(
true
);
var
src
=
"'"
+
payload
.
src
+
"'"
;
var
src
=
"'"
+
payload
.
src
+
"'"
;
var
view
=
$
(
'<div class="gf-box" ng-include="'
+
src
+
'"></div>'
);
var
view
=
$
(
'<div class="gf-box" ng-include="'
+
src
+
'"></div>'
);
...
...
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