Skip to content

Commit

Permalink
removed padding from article.xml and added padding to CSS files.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 30, 2018
1 parent 55eb232 commit 767a183
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ h2:after {
========================================================================== */

#content {
margin-top: 1em;
margin-top: 100px;
min-height: 30em;
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ h2:after {
========================================================================== */

#content {
margin-top: 1em;
margin-top: 100px;
min-height: 30em;
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/solarized.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ h2:after {
========================================================================== */

#content {
margin-top: 1em;
margin-top: 100px;
min-height: 30em;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,12 +657,9 @@ public boolean onSingleTapConfirmed(MotionEvent e) {
float x = e.getX();
int viewWidth = scrollView.getWidth();



if(tapToScroll) {
int viewHeight = scrollView.getHeight();
float y = e.getY() - scrollView.getScrollY();

if (y > viewHeight * 0.25 && y < viewHeight * 0.75) {

if (x < viewWidth * 0.3) { // left part
Expand All @@ -673,7 +670,9 @@ public boolean onSingleTapConfirmed(MotionEvent e) {
}
// TODO: Maybe enable this with option in settings menu?
// Toggle fullscreen if touching center of screen
} else if(x > viewWidth * 0.3 && x < viewWidth * 0.7){
}

if(x > viewWidth * 0.3 && x < viewWidth * 0.7){
isFullscreen = goFullscreen(!isFullscreen);
}

Expand Down
3 changes: 0 additions & 3 deletions app/src/main/res/layout/article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="?attr/actionBarSize"
android:paddingTop="?attr/actionBarSize"

tools:ignore="WebViewLayout">

<WebView
Expand Down

0 comments on commit 767a183

Please sign in to comment.