Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
bfb51694
Commit
bfb51694
authored
Nov 09, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for IE9
parent
f6e64492
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Monitor.js
www/manager/qemu/Monitor.js
+10
-3
No files found.
www/manager/qemu/Monitor.js
View file @
bfb51694
...
...
@@ -26,17 +26,24 @@ Ext.define('PVE.qemu.Monitor', {
autoScroll
:
true
,
border
:
true
,
margins
:
'
5 5 5 5
'
,
bodyStyle
:
'
font-family: monospace;
white-space: pre;
'
bodyStyle
:
'
font-family: monospace;
'
});
var
scrollToEnd
=
function
()
{
var
el
=
textbox
.
getTargetEl
();
var
dom
=
Ext
.
getDom
(
el
);
dom
.
scrollTop
=
dom
.
scrollHeight
-
dom
.
clientHeight
;
var
clientHeight
=
dom
.
clientHeight
;
// BrowserBug: clientHeight reports 0 in IE9 StrictMode
// Instead we are using offsetHeight and hardcoding borders
if
(
Ext
.
isIE9
&&
Ext
.
isStrict
)
{
clientHeight
=
dom
.
offsetHeight
+
2
;
}
dom
.
scrollTop
=
dom
.
scrollHeight
-
clientHeight
;
};
var
refresh
=
function
()
{
textbox
.
update
(
lines
.
join
(
'
\n
'
)
);
textbox
.
update
(
'
<pre>
'
+
lines
.
join
(
'
\n
'
)
+
'
</pre>
'
);
scrollToEnd
();
};
...
...
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