From 976638ab0a91bce59f9490df1fde4f6f4c4f29de Mon Sep 17 00:00:00 2001 From: junghyun park Date: Mon, 24 Feb 2020 03:57:01 +0900 Subject: [PATCH] xXis height error2 fix --- README.md | 2 +- app/build.gradle | 4 ++-- .../java/com/islandparadise14/mintable/MinTimeTableView.kt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e3d0076..7bbf0bc 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you only add a course, **the course time is automatically calculated** and ad Timetable Library for Android Development Author : Mint Park / Seoul, South Korea Email : nasamk3@gmail.com -Newest Version : 1.3.3 (JitPack) +Newest Version : 1.3.4 (JitPack) ![Platform](https://img.shields.io/badge/Platform-Android-orange.svg) ![API](https://img.shields.io/badge/API-19%2B-green.svg) diff --git a/app/build.gradle b/app/build.gradle index ac331d5..8eff655 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,8 +13,8 @@ android { defaultConfig { minSdkVersion 19 targetSdkVersion 29 - versionCode 10 - versionName "1.3.3" + versionCode 11 + versionName "1.3.4" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/com/islandparadise14/mintable/MinTimeTableView.kt b/app/src/main/java/com/islandparadise14/mintable/MinTimeTableView.kt index a5f5ecc..e9328ac 100644 --- a/app/src/main/java/com/islandparadise14/mintable/MinTimeTableView.kt +++ b/app/src/main/java/com/islandparadise14/mintable/MinTimeTableView.kt @@ -107,7 +107,7 @@ class MinTimeTableView : BaseTimeTable { } fun ratioCellSetting(topMenuHeight: Int, leftMenuWidth: Int, cellRatio: Float) { - this.topMenuHeight = if (border) topMenuHeight+1 else topMenuHeight + this.topMenuHeight = topMenuHeight this.leftMenuWidth = leftMenuWidth this.cellRatio = cellRatio isRatio = true @@ -151,7 +151,7 @@ class MinTimeTableView : BaseTimeTable { if (xEndLine) topMenu.addView( XxisView( tableContext, - topMenuHeightPx.roundToInt(), + if (border) (topMenuHeightPx + 1).roundToInt() else topMenuHeightPx.roundToInt(), averageWidth, dayList[i], menuColor