article: fix width of table element

This commit is contained in:
Andrew Dolgov 2013-05-15 13:02:56 +04:00
parent 8062e60b51
commit cbe2c78f96
2 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,8 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
String hexColor = String.format("#%06X", (0xFFFFFF & tv.data)); String hexColor = String.format("#%06X", (0xFFFFFF & tv.data));
cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}"; cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}";
cssOverride += " table { width : 100%; }";
String articleContent = m_article.content != null ? m_article.content : ""; String articleContent = m_article.content != null ? m_article.content : "";
Document doc = Jsoup.parse(articleContent); Document doc = Jsoup.parse(articleContent);

View File

@ -194,6 +194,8 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
String hexColor = String.format("#%06X", (0xFFFFFF & tv.data)); String hexColor = String.format("#%06X", (0xFFFFFF & tv.data));
cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}"; cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}";
cssOverride += " table { width : 100%; }";
String articleContent = m_cursor.getString(m_cursor.getColumnIndex("content")); String articleContent = m_cursor.getString(m_cursor.getColumnIndex("content"));
Document doc = Jsoup.parse(articleContent); Document doc = Jsoup.parse(articleContent);