Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
Project
Project
Details
Activity
Releases
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
劳工
zeroing-engine
Commits
1527f8b9
Commit
1527f8b9
authored
Dec 21, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复输入框定位问题
parent
0ae2d7c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
manifest.json
manifest.json
+1
-1
Stage.ts
src/2d/display/Stage.ts
+7
-3
No files found.
manifest.json
View file @
1527f8b9
{
"id"
:
"engine"
,
"url"
:
"engine.d2f4eafa108b00ed5ac00e2d30ee98f8af4a9118.js"
}
\ No newline at end of file
{
"id"
:
"engine"
,
"url"
:
"engine.7b5a9a2397ef665754752460dc5577477fa42a1e.js"
}
\ No newline at end of file
src/2d/display/Stage.ts
View file @
1527f8b9
...
...
@@ -556,7 +556,7 @@ export class Stage extends Container {
* @return {{w: number, h: number}}
*/
public
getRootDivWH
(
div
:
HTMLDivElement
)
{
let
sw
=
div
.
style
.
width
;
/*
let sw = div.style.width;
let sh = div.style.height;
let iw = document.body.clientWidth;
// let ih = document.body.clientHeight-40;
...
...
@@ -577,7 +577,11 @@ export class Stage extends Container {
vH *= ih / 100;
}
}
return
{
w
:
vW
,
h
:
vH
};
return {w: vW, h: vH};*/
let
divBound
=
div
.
getBoundingClientRect
();
let
w
=
divBound
.
width
;
let
h
=
divBound
.
height
;
return
{
w
,
h
};
}
/**
...
...
@@ -1028,4 +1032,4 @@ export class Stage extends Container {
s
.
_ml
=
null
;
super
.
destroy
();
}
}
\ No newline at end of file
}
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