h5:use max-content insted of fit-content
This commit is contained in:
parent
06dd2ce7c5
commit
17040285e7
28
doric-h5/dist/DoricPlayground.js
vendored
28
doric-h5/dist/DoricPlayground.js
vendored
File diff suppressed because one or more lines are too long
4
doric-h5/dist/index.js
vendored
4
doric-h5/dist/index.js
vendored
@ -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%";
|
||||
|
2
doric-h5/dist/index.js.map
vendored
2
doric-h5/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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:
|
||||
|
Reference in New Issue
Block a user