Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
670cee70
Commit
670cee70
authored
Jul 19, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复luna窗口大小
parent
104fac79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
term.component.ts
src/app/elements/term/term.component.ts
+4
-4
No files found.
src/app/elements/term/term.component.ts
View file @
670cee70
...
...
@@ -57,10 +57,10 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
const
elementPaddingVer
=
elementPadding
.
top
+
elementPadding
.
bottom
;
const
elementPaddingHor
=
elementPadding
.
right
+
elementPadding
.
left
;
const
availableHeight
=
activeEle
.
height
()
-
elementPaddingVer
;
const
availableWidth
=
activeEle
.
width
()
-
elementPaddingHor
-
(
<
any
>
this
.
term
).
viewport
.
scrollBarWidth
;
const
availableWidth
=
activeEle
.
width
()
-
elementPaddingHor
-
(
<
any
>
this
.
term
).
_core
.
viewport
.
scrollBarWidth
;
const
geometry
=
[
Math
.
floor
(
availableWidth
/
(
<
any
>
this
.
term
).
renderer
.
dimensions
.
actualCellWidth
)
-
1
,
Math
.
floor
(
availableHeight
/
(
<
any
>
this
.
term
).
renderer
.
dimensions
.
actualCellHeight
)
-
1
Math
.
floor
(
availableWidth
/
(
<
any
>
this
.
term
).
_core
.
renderer
.
dimensions
.
actualCellWidth
)
-
1
,
Math
.
floor
(
availableHeight
/
(
<
any
>
this
.
term
).
_core
.
renderer
.
dimensions
.
actualCellHeight
)
-
1
];
return
geometry
;
}
...
...
@@ -70,7 +70,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
if
(
isNaN
(
size
[
0
])
||
isNaN
(
size
[
1
]))
{
fit
(
this
.
term
);
}
else
{
(
<
any
>
this
.
term
).
renderer
.
clear
();
(
<
any
>
this
.
term
).
_core
.
renderer
.
clear
();
this
.
term
.
resize
(
size
[
0
],
size
[
1
]);
}
this
.
winSizeChangeTrigger
.
emit
([
this
.
term
.
cols
,
this
.
term
.
rows
]);
...
...
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