Showing
1 changed file
with
5 additions
and
5 deletions
| @@ -48,8 +48,8 @@ export struct WdWebLocalComponent { | @@ -48,8 +48,8 @@ export struct WdWebLocalComponent { | ||
| 48 | 48 | ||
| 49 | Row() { | 49 | Row() { |
| 50 | RelativeContainer() { | 50 | RelativeContainer() { |
| 51 | - // Web({ src: this.webResource, controller: this.webviewControl, renderMode: RenderMode.SYNC_RENDER }) | ||
| 52 | - Web({ src: this.webResource, controller: this.webviewControl}) | 51 | + Web({ src: this.webResource, controller: this.webviewControl, renderMode: RenderMode.SYNC_RENDER }) |
| 52 | + // Web({ src: this.webResource, controller: this.webviewControl}) | ||
| 53 | .domStorageAccess(true) | 53 | .domStorageAccess(true) |
| 54 | .databaseAccess(true) | 54 | .databaseAccess(true) |
| 55 | .javaScriptAccess(true) | 55 | .javaScriptAccess(true) |
| @@ -57,9 +57,9 @@ export struct WdWebLocalComponent { | @@ -57,9 +57,9 @@ export struct WdWebLocalComponent { | ||
| 57 | .mixedMode(MixedMode.All) | 57 | .mixedMode(MixedMode.All) |
| 58 | .onlineImageAccess(true) | 58 | .onlineImageAccess(true) |
| 59 | .enableNativeEmbedMode(true) | 59 | .enableNativeEmbedMode(true) |
| 60 | - // .layoutMode(WebLayoutMode.FIT_CONTENT) | ||
| 61 | - // .nestedScroll({ scrollForward: NestedScrollMode.SELF_FIRST, scrollBackward: NestedScrollMode.PARENT_FIRST }) | ||
| 62 | - .height(this.webHeight) | 60 | + .layoutMode(WebLayoutMode.FIT_CONTENT) |
| 61 | + .nestedScroll({ scrollForward: NestedScrollMode.SELF_FIRST, scrollBackward: NestedScrollMode.PARENT_FIRST }) | ||
| 62 | + // .height(this.webHeight) | ||
| 63 | .onPageBegin((event) => { | 63 | .onPageBegin((event) => { |
| 64 | this.onPageBegin(event?.url); | 64 | this.onPageBegin(event?.url); |
| 65 | }) | 65 | }) |
-
Please register or login to post a comment