Skip to content

Text turns into black box in very long Entry #678

Open
@terminationshock

Description

@terminationshock

Describe the bug:

When inserting a single line of text of more than ~1500 characters into a multi-line entry embedded into a ScrollContainer, a black box is displayed. Observed both on Ubuntu and cross-compiled for Windows.

To Reproduce:

Steps to reproduce the behaviour:

  1. Build the code shown below.
  2. Insert a single line of text of ~1500 characters.
  3. Observe the text turning into a black box.

Screenshots:

Before and after inserting "enough" characters:
before
after

Example code:

Working version to reproduce:

package main
  
import (
    "fyne.io/fyne"
    "fyne.io/fyne/app"
    "fyne.io/fyne/layout"
    "fyne.io/fyne/widget"
)

func main() {
    application := app.New()
    win := application.NewWindow("")

    container := fyne.NewContainerWithLayout(layout.NewMaxLayout())
    entry := widget.NewMultiLineEntry()
    container.AddObject(widget.NewScrollContainer(entry))

    win.SetContent(container)
    win.Resize(fyne.NewSize(400, 400))
    win.ShowAndRun()
}

Device (please complete the following information):

  • OS: Ubuntu 18.04.4 LTS and WIndows 10 (cross-compiled)
  • Go version: go1.13.6 linux/amd64
  • Fyne version: git commit 713899d

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions