h5:use max-content insted of fit-content

This commit is contained in:
pengfei.zhou 2019-12-28 15:42:12 +08:00 committed by osborn
parent 06dd2ce7c5
commit 17040285e7
4 changed files with 31 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -3796,7 +3796,7 @@ return __module.exports;
configWidth() {
switch (this.layoutConfig.widthSpec) {
case LayoutSpec.WRAP_CONTENT:
this.view.style.width = "fit-content";
this.view.style.width = "max-content";
break;
case LayoutSpec.AT_MOST:
this.view.style.width = "100%";
@ -3812,7 +3812,7 @@ return __module.exports;
configHeight() {
switch (this.layoutConfig.heightSpec) {
case LayoutSpec.WRAP_CONTENT:
this.view.style.height = "fit-content";
this.view.style.height = "max-content";
break;
case LayoutSpec.AT_MOST:
this.view.style.height = "100%";

File diff suppressed because one or more lines are too long

View File

@ -158,7 +158,7 @@ export abstract class DoricViewNode {
configWidth() {
switch (this.layoutConfig.widthSpec) {
case LayoutSpec.WRAP_CONTENT:
this.view.style.width = "fit-content"
this.view.style.width = "max-content"
break
case LayoutSpec.AT_MOST:
@ -176,7 +176,7 @@ export abstract class DoricViewNode {
configHeight() {
switch (this.layoutConfig.heightSpec) {
case LayoutSpec.WRAP_CONTENT:
this.view.style.height = "fit-content"
this.view.style.height = "max-content"
break
case LayoutSpec.AT_MOST: