andlabs / andlabs/libui

ScrollingArea text wrapping

Abierto
#401 4 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C
Estrellas
10.9k
Forks
612
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

On macOS, the text isn't getting wrapped at all (only newlines are handled):

![bildschirmfoto 2018-07-18 um 12 43 55](https://user-images.githubusercontent.com/4586894/42876853-3ecb79b6-8a88-11e8-8791-e3cdf57fe35e.png)

GTK:
![bildschirmfoto 2018-07-18 um 13 00 12](https://user-images.githubusercontent.com/4586894/42877602-8c3e9410-8a8a-11e8-9155-db94a1f8270f.png)

Windows:
![scrolling ong](https://user-images.githubusercontent.com/4586894/42877640-a468387a-8a8a-11e8-9ad1-92356502c222.PNG)

Code:
```diff
diff --git a/examples/drawtext/main.c b/examples/drawtext/main.c
index d94d2572..544d44e9 100644
--- a/examples/drawtext/main.c
+++ b/examples/drawtext/main.c
@@ -208,7 +208,7 @@ int main(void)
uiComboboxOnSelected(alignment, onComboboxSelected, NULL);
uiFormAppend(form, "Alignment", uiControl(alignment), 0);

- area = uiNewArea(&handler);
+ area = uiNewScrollingArea(&handler, 500, 1000);
uiBoxAppend(hbox, uiControl(area), 1);

uiControlShow(uiControl(mainwin));
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.