1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

fixed right indent usage

This commit is contained in:
Nikolay Pultsin 2014-06-06 11:47:52 +01:00
parent 4a02e44019
commit af829b8d51

View file

@ -1061,9 +1061,9 @@ public abstract class ZLTextView extends ZLTextViewBase {
ZLTextStyle storedStyle = getTextStyle(); ZLTextStyle storedStyle = getTextStyle();
info.LeftIndent = getTextStyle().getLeftIndent(metrics()); info.LeftIndent = storedStyle.getLeftIndent(metrics());
if (isFirstLine) { if (isFirstLine) {
info.LeftIndent = getTextStyle().getFirstLineIndent(metrics()); info.LeftIndent += storedStyle.getFirstLineIndent(metrics());
} }
info.Width = info.LeftIndent; info.Width = info.LeftIndent;
@ -1077,7 +1077,7 @@ public abstract class ZLTextView extends ZLTextViewBase {
int newWidth = info.Width; int newWidth = info.Width;
int newHeight = info.Height; int newHeight = info.Height;
int newDescent = info.Descent; int newDescent = info.Descent;
int maxWidth = page.getTextWidth(); int maxWidth = page.getTextWidth() - storedStyle.getRightIndent(metrics());
boolean wordOccurred = false; boolean wordOccurred = false;
boolean isVisible = false; boolean isVisible = false;
int lastSpaceWidth = 0; int lastSpaceWidth = 0;