andlabs / andlabs/libui

ScrollingArea text wrapping

Đang mở
#401 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
10.9k
Fork
612
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.