java - GWT - Label not wrapping text properly? -


i've got labels within cell of flextable inside of scrollpanel inside of layoutpanels. size of scrollpanel (and it's parent layoutpanels) set dynamically based on size of window of user's device (so exact css sizing not used). flextable, it's cells, , labels set have width of 100%. also, flextable set have fixed table layout. , labels given word-wrap setting of break-word. in cases, works fine. sentences short words wrapped next line without problem , label remains same size it's containing table cell. however, when word need broken onto 2 lines fit (which happens since links pages placed here) label's width automatically extended beyond size of cell contains it. know result of gwt resizing label itself, i'm not sure how prevent this. i've tried setting word-break break-all, results in short words reaching end of line broken (like "this" "th" , "is") silly. there anyway can force gwt label 100% of width of it's containing cell , not let extend beyond while still keeping setting dynamic? thank much!

i don't think there's solution this; either allow breaking @ normal points (white spaces) or can break inside words, there's no way prevent breaking of short words css.

the best suggestion can give, since links causing problems, shorten links somehow, maybe display finite number of characters; if links clickable, shouldn't huge problem.

alternatively, set fixed size labels or cells (can still in %) , use overflow-x hide bits of text poking out if there's long word cannot broken.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -