From cbe2c78f96da0aaaf46589349d4cb9ff8c26d918 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 May 2013 13:02:56 +0400 Subject: [PATCH] article: fix width of table element --- src/org/fox/ttrss/ArticleFragment.java | 2 ++ src/org/fox/ttrss/offline/OfflineArticleFragment.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index 396ef730..b45814cb 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -212,6 +212,8 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl String hexColor = String.format("#%06X", (0xFFFFFF & tv.data)); cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}"; + cssOverride += " table { width : 100%; }"; + String articleContent = m_article.content != null ? m_article.content : ""; Document doc = Jsoup.parse(articleContent); diff --git a/src/org/fox/ttrss/offline/OfflineArticleFragment.java b/src/org/fox/ttrss/offline/OfflineArticleFragment.java index 13052f0a..b1093517 100644 --- a/src/org/fox/ttrss/offline/OfflineArticleFragment.java +++ b/src/org/fox/ttrss/offline/OfflineArticleFragment.java @@ -194,6 +194,8 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector. String hexColor = String.format("#%06X", (0xFFFFFF & tv.data)); cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}"; + cssOverride += " table { width : 100%; }"; + String articleContent = m_cursor.getString(m_cursor.getColumnIndex("content")); Document doc = Jsoup.parse(articleContent);