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
Hide 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
...
...
@@ -15,8 +15,10 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9b41f7a2-a71e-4923-91fb-249d7815b3e7"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/main.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/lib/main.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/example/lib/main.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/example/lib/main.dart"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
...
...
@@ -39,10 +41,10 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
15
"
>
<caret
line=
"
24"
column=
"31"
selection-end-line=
"366
"
selection-end-column=
"1"
/>
<state
relative-caret-position=
"
481
"
>
<caret
line=
"
78"
column=
"1"
selection-start-line=
"78"
selection-start-column=
"1"
selection-end-line=
"78
"
selection-end-column=
"1"
/>
<folding>
<element
signature=
"e#
1907#1927
#0"
expanded=
"true"
/>
<element
signature=
"e#
0#20
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
@@ -63,8 +65,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
208
"
>
<caret
line=
"
414"
column=
"40"
lean-forward=
"true"
selection-start-line=
"410"
selection-start-column=
"5"
selection-end-line=
"414"
selection-end-column=
"40
"
/>
<state
relative-caret-position=
"
373
"
>
<caret
line=
"
81"
column=
"46"
selection-start-line=
"81"
selection-start-column=
"46"
selection-end-line=
"81"
selection-end-column=
"46
"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
...
...
@@ -108,12 +110,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/README.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
216
"
>
<state
relative-caret-position=
"
6180
"
>
<caret
line=
"412"
column=
"3"
selection-start-line=
"412"
selection-start-column=
"3"
selection-end-line=
"412"
selection-end-column=
"21"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
...
...
@@ -139,7 +137,6 @@
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
default
</find>
<find>
_staticChannel
</find>
<find>
defa
</find>
<find>
InAppWebViewStatic
</find>
...
...
@@ -169,6 +166,7 @@
<find>
InputAwareWebView
</find>
<find>
\n
</find>
<find>
dropDownWorkaroundEnabled
</find>
<find>
debuggingEnabled
</find>
</findStrings>
<replaceStrings>
<replace>
activity.getPreferences(0)
</replace>
...
...
@@ -238,14 +236,14 @@
<option
value=
"$PROJECT_DIR$/example/test_driver/in_app_webview_should_override_url_loading_test.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/in_app_browser_example.screen.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/webview_options.dart"
/>
<option
value=
"$PROJECT_DIR$/CHANGELOG.md"
/>
<option
value=
"$PROJECT_DIR$/README.md"
/>
<option
value=
"$PROJECT_DIR$/lib/src/webview_options.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/main.dart"
/>
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1920"
/>
<option
name=
"height"
value=
"1057"
/>
...
...
@@ -256,6 +254,28 @@
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
<panes>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
<path>
<item
name=
"flutter_inappwebview"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"flutter_inappwebview"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"flutter_inappwebview"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"flutter_inappwebview"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"flutter_inappwebview"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"flutter_inappwebview"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
<pane
id=
"Scope"
>
<subPane
subId=
"Project Files"
>
<expand>
...
...
@@ -267,6 +287,7 @@
<select
/>
</subPane>
</pane>
<pane
id=
"PackagesPane"
/>
<pane
id=
"AndroidView"
>
<subPane>
<expand>
...
...
@@ -296,29 +317,6 @@
<select
/>
</subPane>
</pane>
<pane
id=
"PackagesPane"
/>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
<path>
<item
name=
"flutter_inappwebview"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"flutter_inappwebview"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"flutter_inappwebview"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"flutter_inappwebview"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"flutter_inappwebview"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"flutter_inappwebview"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
...
...
@@ -482,7 +480,7 @@
<window_info
id=
"Resources Explorer"
order=
"8"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.32745314"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Run"
order=
"2"
sideWeight=
"0.49478307"
visible=
"true"
weight=
"0.4
787565
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Run"
order=
"2"
sideWeight=
"0.49478307"
visible=
"true"
weight=
"0.4
4455957
"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.34196892"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
...
...
@@ -840,6 +838,13 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/in_app_webview.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"195"
>
<caret
line=
"13"
selection-start-line=
"13"
selection-end-line=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/types.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"30285"
>
...
...
@@ -860,47 +865,36 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
CHANGELOG
.md"
>
<entry
file=
"file://$PROJECT_DIR$/
README
.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"180"
>
<caret
line=
"
12"
column=
"34"
selection-start-line=
"12"
selection-start-column=
"34"
selection-end-line=
"12"
selection-end-column=
"34
"
/>
<state
relative-caret-position=
"
6
180"
>
<caret
line=
"
412"
column=
"3"
selection-start-line=
"412"
selection-start-column=
"3"
selection-end-line=
"412"
selection-end-column=
"21
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/in_app_webview.dart
"
>
<entry
file=
"file://$PROJECT_DIR$/
CHANGELOG.md
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
95
"
>
<caret
line=
"1
3"
selection-start-line=
"13"
selection-end-line=
"13
"
/>
<state
relative-caret-position=
"1
80
"
>
<caret
line=
"1
2"
column=
"34"
selection-start-line=
"12"
selection-start-column=
"34"
selection-end-line=
"12"
selection-end-column=
"34
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
208
"
>
<caret
line=
"
414"
column=
"40"
lean-forward=
"true"
selection-start-line=
"410"
selection-start-column=
"5"
selection-end-line=
"414"
selection-end-column=
"40
"
/>
<state
relative-caret-position=
"
373
"
>
<caret
line=
"
81"
column=
"46"
selection-start-line=
"81"
selection-start-column=
"46"
selection-end-line=
"81"
selection-end-column=
"46
"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/README.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"216"
>
<caret
line=
"412"
column=
"3"
selection-start-line=
"412"
selection-start-column=
"3"
selection-end-line=
"412"
selection-end-column=
"21"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
15
"
>
<caret
line=
"
24"
column=
"31"
selection-end-line=
"366
"
selection-end-column=
"1"
/>
<state
relative-caret-position=
"
481
"
>
<caret
line=
"
78"
column=
"1"
selection-start-line=
"78"
selection-start-column=
"1"
selection-end-line=
"78
"
selection-end-column=
"1"
/>
<folding>
<element
signature=
"e#
1907#1927
#0"
expanded=
"true"
/>
<element
signature=
"e#
0#20
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
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