mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
video element size
This commit is contained in:
parent
17e99e5ea0
commit
8207b6935b
1 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ abstract class ZLTextViewBase extends ZLView {
|
||||||
);
|
);
|
||||||
return size != null ? size.Width : 0;
|
return size != null ? size.Width : 0;
|
||||||
} else if (element instanceof ZLTextVideoElement) {
|
} else if (element instanceof ZLTextVideoElement) {
|
||||||
return 300;
|
return Math.min(300, getTextColumnWidth());
|
||||||
} else if (element == ZLTextElement.Indent) {
|
} else if (element == ZLTextElement.Indent) {
|
||||||
return myTextStyle.getFirstLineIndentDelta();
|
return myTextStyle.getFirstLineIndentDelta();
|
||||||
} else if (element instanceof ZLTextFixedHSpaceElement) {
|
} else if (element instanceof ZLTextFixedHSpaceElement) {
|
||||||
|
@ -220,7 +220,7 @@ abstract class ZLTextViewBase extends ZLView {
|
||||||
return (size != null ? size.Height : 0) +
|
return (size != null ? size.Height : 0) +
|
||||||
Math.max(getContext().getStringHeight() * (myTextStyle.getLineSpacePercent() - 100) / 100, 3);
|
Math.max(getContext().getStringHeight() * (myTextStyle.getLineSpacePercent() - 100) / 100, 3);
|
||||||
} else if (element instanceof ZLTextVideoElement) {
|
} else if (element instanceof ZLTextVideoElement) {
|
||||||
return 200;
|
return Math.min(Math.min(200, getTextAreaHeight()), getTextColumnWidth() * 2 / 3);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue