Skip to content

Commit

Permalink
xXis height error2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
islandparadise14 committed Feb 23, 2020
1 parent 3e19b43 commit 976638a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 : [email protected]
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)
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 976638a

Please sign in to comment.