Skip to content
Snippets Groups Projects
Commit a32c1b79 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix wrong line breaking

parent 4bfbd3d7
No related branches found
No related tags found
No related merge requests found
Pipeline #13490 passed
......@@ -116,7 +116,7 @@ const redraw = async (canvas, options) => {
mainTextBox = new PaddedHighlightingTextbox(
highlightedData.text,
{
width: mainTextWidth,
width: canvas.width,
left: textMarginLeft,
textAlign: 'left',
fontFamily: 'Bebas Neue',
......
......@@ -64,7 +64,7 @@ const redraw = async (canvas, options) => {
mainTextBox = new PaddedHighlightingTextbox(
highlightedData.text,
{
width: mainTextWidth,
width: canvas.width,
left: textMarginLeft,
textAlign: 'center',
fontFamily: 'Bebas Neue',
......
......@@ -219,7 +219,7 @@ const redraw = async (canvas, options) => {
mainTextBox = new PaddedHighlightingTextbox(
highlightedData.text,
{
width: mainTextWidth,
width: canvas.width,
left: textMarginSides,
textAlign: 'left',
fontFamily: 'Glegoo',
......
......@@ -195,7 +195,7 @@ const redraw = async (canvas, options) => {
mainTextBox = new PaddedHighlightingTextbox(
highlightedData.text,
{
width: mainTextWidth,
width: canvas.width,
left: textMarginSides,
textAlign: 'left',
fontFamily: 'Glegoo',
......
......@@ -109,7 +109,7 @@ const redraw = async (canvas, options) => {
textBox = new PaddedHighlightingTextbox(
highlightedData.text,
{
width: textBoxWidth,
width: canvas.width,
left: textBoxMarginSide,
top: (
textBoxTop
......
......@@ -180,7 +180,7 @@ const redraw = async (canvas, options) => {
mainTextBox = new PaddedHighlightingTextbox(
highlightedData.text,
{
width: mainTextBoxWidth,
width: canvas.width,
textAlign: 'left',
fontSize: mainTextBoxFontSize,
fontFamily: 'Roboto Condensed',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment