andlabs / andlabs/libui

ScrollingArea text wrapping

オープン
#401 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
10.9k
フォーク
612
PR マージ指標
30日以内にマージされた PR はありません

説明

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));
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。