Skip to content

Commit af83e43

Browse files
committed
#1720 fix modes height
1 parent 1e09cba commit af83e43

File tree

1 file changed

+2
-6
lines changed
  • client/packages/lowcoder/src/comps/comps/fileComp

1 file changed

+2
-6
lines changed

client/packages/lowcoder/src/comps/comps/fileComp/fileComp.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ let FileTmpComp = new UICompBuilder(childrenMap, (props, dispatch) => {
472472
label: trans("file.dragHintText"),
473473
})}
474474
{children.uploadType.propertyView({ label: trans("file.uploadType") })}
475-
{children.uploadMode.getView() === "dragArea" && children.autoHeight.getPropertyView()}
475+
{children.autoHeight.getPropertyView()}
476476
</Section>
477477

478478
<FormDataPropertyView {...children} />
@@ -530,11 +530,7 @@ let FileTmpComp = new UICompBuilder(childrenMap, (props, dispatch) => {
530530

531531
class FileImplComp extends FileTmpComp {
532532
override autoHeight(): boolean {
533-
// Button mode is always fixed (grid should show resize handles)
534-
const mode = this.children.uploadMode.getView(); // "button" | "dragArea"
535-
if (mode !== "dragArea") return false;
536-
537-
// "auto" | "fixed" -> boolean
533+
// Both button and dragArea modes should respect the autoHeight setting
538534
const h = this.children.autoHeight.getView();
539535
return h;
540536
}

0 commit comments

Comments
 (0)