GwtMaterialDesign / gwt-material

A Google Material Design wrapper for GWT
https://gwtmaterialdesign.github.io/gmd-core-demo/
Apache License 2.0
411 stars 124 forks source link

MaterialTreeItem wrapping #958

Open sandworm88 opened 4 years ago

sandworm88 commented 4 years ago

I need to place quite long strings to MaterlalTableItems but on narrow devices like smartphones it causes the horizontal scrolling, not line wrapping. Please make the wrapping available at least as option.

kevzlou7979 commented 4 years ago

Can you elaborate or show us the screen shot what you are expecting so that I can do the new requested feature for the TreeItem. I saw you are talking two things in your title it's MaterialTreeItem and in your description it's MaterialTableItems which one is correct?

sandworm88 commented 4 years ago

Thanks for reply. Please look to line with 'cashboxes'. It's quite long and I think it should be wrapped to several lines. But now the tree widget scrolls horizontally. I'd tried to set custom css in xml:

.tree-item .tree-header { white-space: normal; } --- No effect. чт, 7 мая 2020 г., 15:54 Mark Kevin Baldemor : > Can you elaborate or show us the screen shot what you are expecting so > that I can do the new requested feature for the TreeItem. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > -- WBR Eugene V Budnikov
sandworm88 commented 4 years ago

Sorry, screenshots was not attached in previous mail.

чт, 7 мая 2020 г., 16:29 Eugene V Budnikov my@sandworm.pp.ru:

Thanks for reply. Please look to line with 'cashboxes'. It's quite long and I think it should be wrapped to several lines. But now the tree widget scrolls horizontally. I'd tried to set custom css in xml:

.tree-item .tree-header { white-space: normal; } --- No effect. чт, 7 мая 2020 г., 15:54 Mark Kevin Baldemor : > Can you elaborate or show us the screen shot what you are expecting so > that I can do the new requested feature for the TreeItem. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > -- WBR Eugene V Budnikov
kevzlou7979 commented 4 years ago

Sorry can't see the image.

sandworm88 commented 4 years ago

Screenshot_20200507-162115 Screenshot_20200507-162107

kevzlou7979 commented 4 years ago

Oh i see what you mean, so you want to push the overflowed text to the second line. Well will add this to the next version of Tree Item, probably on 2.3.1

sandworm88 commented 4 years ago

Thanks! But maybe some workaround available now?

kevzlou7979 commented 4 years ago

I will take a look if some style will override the default behaviors.