Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
c50e8dd1
Commit
c50e8dd1
authored
Aug 03, 2021
by
好多大米
Committed by
GitHub
Aug 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select: fix a bug that makes the browser jitter in zoom mode (#21197)
parent
4d7d24b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
packages/select/src/select.vue
packages/select/src/select.vue
+2
-1
No files found.
packages/select/src/select.vue
View file @
c50e8dd1
...
@@ -646,11 +646,12 @@
...
@@ -646,11 +646,12 @@
let
inputChildNodes
=
this
.
$refs
.
reference
.
$el
.
childNodes
;
let
inputChildNodes
=
this
.
$refs
.
reference
.
$el
.
childNodes
;
let
input
=
[].
filter
.
call
(
inputChildNodes
,
item
=>
item
.
tagName
===
'
INPUT
'
)[
0
];
let
input
=
[].
filter
.
call
(
inputChildNodes
,
item
=>
item
.
tagName
===
'
INPUT
'
)[
0
];
const
tags
=
this
.
$refs
.
tags
;
const
tags
=
this
.
$refs
.
tags
;
const
tagsHeight
=
Math
.
round
(
tags
.
getBoundingClientRect
().
height
);
const
sizeInMap
=
this
.
initialInputHeight
||
40
;
const
sizeInMap
=
this
.
initialInputHeight
||
40
;
input
.
style
.
height
=
this
.
selected
.
length
===
0
input
.
style
.
height
=
this
.
selected
.
length
===
0
?
sizeInMap
+
'
px
'
?
sizeInMap
+
'
px
'
:
Math
.
max
(
:
Math
.
max
(
tags
?
(
tags
.
clientHeight
+
(
tags
.
client
Height
>
sizeInMap
?
6
:
0
))
:
0
,
tags
?
(
tags
Height
+
(
tags
Height
>
sizeInMap
?
6
:
0
))
:
0
,
sizeInMap
sizeInMap
)
+
'
px
'
;
)
+
'
px
'
;
if
(
this
.
visible
&&
this
.
emptyText
!==
false
)
{
if
(
this
.
visible
&&
this
.
emptyText
!==
false
)
{
...
...
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