Browse Source

fix(main canvas): bottom space

When hide add button and back to top button,we donot need 80px space bottom
master
mengshukeji 5 years ago
parent
commit
23c8a78cb3
  1. 1
      README-zh.md
  2. 1
      README.md
  3. 1
      docs/about/README.md
  4. 1
      docs/zh/about/README.md
  5. 4
      docs/zh/guide/config.md
  6. 8
      src/global/rhchInit.js

1
README-zh.md

@ -182,6 +182,7 @@ Luckysheet是MIT许可的开源项目,其持续稳定的开发离不开这些
- [@gsw945](https://github.com/gsw945)
- [@swen-xiong](https://github.com/swen-xiong)
- [@lzmch](https://github.com/lzmch)
- [@kdevilpf](https://github.com/kdevilpf)
## 版权信息
[MIT](http://opensource.org/licenses/MIT)

1
README.md

@ -178,6 +178,7 @@ Funds donated via Patreon go directly to support mengshukeji's work on Luckyshee
- [@gsw945](https://github.com/gsw945)
- [@swen-xiong](https://github.com/swen-xiong)
- [@lzmch](https://github.com/lzmch)
- [@kdevilpf](https://github.com/kdevilpf)
## License
[MIT](http://opensource.org/licenses/MIT)

1
docs/about/README.md

@ -21,3 +21,4 @@ Luckysheet is a project led by an individual and jointly developed by several fr
- [@gsw945](https://github.com/gsw945)
- [@swen-xiong](https://github.com/swen-xiong)
- [@lzmch](https://github.com/lzmch)
- [@kdevilpf](https://github.com/kdevilpf)

1
docs/zh/about/README.md

@ -21,3 +21,4 @@ Luckysheet是由个人主导、几个志同道合的小伙伴一同开发的项
- [@gsw945](https://github.com/gsw945)
- [@swen-xiong](https://github.com/swen-xiong)
- [@lzmch](https://github.com/lzmch)
- [@kdevilpf](https://github.com/kdevilpf)

4
docs/zh/guide/config.md

@ -1213,7 +1213,7 @@ Luckysheet开放了更细致的自定义配置选项,分别有
## 工作簿
### workbookCreateBefore
(TODO)
- 类型:Function
- 默认值:null
- 作用:表格创建之前触发。旧的钩子函数叫做`beforeCreateDom`
@ -1222,7 +1222,7 @@ Luckysheet开放了更细致的自定义配置选项,分别有
------------
### workbookCreateAfter
(TODO)
- 类型:Function
- 默认值:null
- 作用:表格创建之后触发

8
src/global/rhchInit.js

@ -25,7 +25,13 @@ export default function rhchInit(rowheight, colwidth) {
Store.visibledatarow.push(Store.rh_height); //行的临时长度分布
}
Store.rh_height += 80; //最底部增加空白
// 如果增加行和回到顶部按钮隐藏,则减少底部空白区域,但是预留足够空间给单元格下拉按钮
if(!luckysheetConfigsetting.enableAddRow && !luckysheetConfigsetting.enableAddBackTop){
Store.rh_height += 29;
}else{
Store.rh_height += 80; //最底部增加空白
}
}
//列宽

Loading…
Cancel
Save