Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(main canvas): bottom space
Browse files Browse the repository at this point in the history
When hide add button and back to top button,we donot need 80px space bottom
  • Loading branch information
mengshukeji committed Dec 16, 2020
1 parent 5add606 commit 23c8a78
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion docs/about/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Luckysheet is a project led by an individual and jointly developed by several fr
- [@TimerGang](https://github.com/TimerGang)
- [@gsw945](https://github.com/gsw945)
- [@swen-xiong](https://github.com/swen-xiong)
- [@lzmch](https://github.com/lzmch)
- [@lzmch](https://github.com/lzmch)
- [@kdevilpf](https://github.com/kdevilpf)
3 changes: 2 additions & 1 deletion docs/zh/about/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Luckysheet是由个人主导、几个志同道合的小伙伴一同开发的项
- [@TimerGang](https://github.com/TimerGang)
- [@gsw945](https://github.com/gsw945)
- [@swen-xiong](https://github.com/swen-xiong)
- [@lzmch](https://github.com/lzmch)
- [@lzmch](https://github.com/lzmch)
- [@kdevilpf](https://github.com/kdevilpf)
4 changes: 2 additions & 2 deletions docs/zh/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ Luckysheet开放了更细致的自定义配置选项,分别有
## 工作簿

### workbookCreateBefore
(TODO)

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

------------
### workbookCreateAfter
(TODO)

- 类型:Function
- 默认值:null
- 作用:表格创建之后触发
Expand Down
8 changes: 7 additions & 1 deletion src/global/rhchInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; //最底部增加空白
}

}

//列宽
Expand Down

0 comments on commit 23c8a78

Please sign in to comment.