Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Flutter Inappwebview
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
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
Flutter Inappwebview
Commits
9b85ae9c
Commit
9b85ae9c
authored
Dec 12, 2019
by
Lorenzo Pichilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated dropDownWorkaround
parent
ee4d0162
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
62 deletions
+59
-62
.idea/workspace.xml
.idea/workspace.xml
+54
-60
android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java
...renzo/flutter_inappwebview/InAppWebView/InAppWebView.java
+5
-2
No files found.
.idea/workspace.xml
View file @
9b85ae9c
This diff is collapsed.
Click to expand it.
android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java
View file @
9b85ae9c
...
...
@@ -854,8 +854,11 @@ final public class InAppWebView extends InputAwareWebView {
" var spanElement = document.createElement(\"span\");"
+
" spanElement.flutterInAppWebViewSelect = selectElement;"
+
" new ResizeSensor(spanElement, function() {"
+
" selectElement.style.width = spanElement.getBoundingClientRect().width + \"px\";"
+
" selectElement.style.height = spanElement.getBoundingClientRect().height + \"px\";"
+
" var style = selectElement.currentStyle || window.getComputedStyle(selectElement);"
+
" var xMargin = parseFloat(style.marginLeft) + parseFloat(style.marginRight);"
+
" var yMargin = parseFloat(style.marginTop) + parseFloat(style.marginBottom);"
+
" selectElement.style.width = (spanElement.getBoundingClientRect().width - xMargin) + \"px\";"
+
" selectElement.style.height = (spanElement.getBoundingClientRect().height - yMargin) + \"px\";"
+
" });"
+
" spanElement.className = \"flutterInAppWebViewSelect-\" + uuid;"
+
" spanElement.style.padding = \"0px\";"
+
...
...
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