浏览代码

Bugfix: spreadbehaviour problem fixed on DateTimePicker.

lfabl 2 周之前
父节点
当前提交
811e8137c5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/dateTimePicker/stylesheet.ts

+ 2 - 0
src/components/dateTimePicker/stylesheet.ts

@@ -240,7 +240,9 @@ export const useStyles = ({
     }
 
     if (spreadBehaviour === "stretch") {
+        styles.container.alignSelf = spreadBehaviour;
         styles.container.justifyContent = "center";
+        styles.container.flexShrink = 1;
         styles.container.width = "100%";
     }