From: Antony C. <an...@sm...> - 2006-06-22 16:08:20
|
On 22 Jun 2006, at 13:10, Jon Maber wrote: > Antony Corfield wrote: >> The title of the resource will still appear in full at the top of the >> resource page, this is just truncation for navigation div - the method >> could truncate at a reasonably logical place I guess! >> > It doesn't really work Neither does the css solution!-) > - you will never know what size the font is or > what width the window is so can't calculate a text length. It's better > to define the box within which the text should appear and make sure > that > the text doesn't escape from that box. In the glorious future the best > way to do that is in a non-frames page using a div with the max-height > property set and with the overspill clipped or scrolled. Low tech. > browser solution would be with a table. >> On 22 Jun 2006, at 11:15, Matthew Buckett wrote: >> >> >>> Antony Corfield wrote: >>> >>>> How about a much simpler approach?!! Just add a method 'public >>>> static >>>> String trimText(String text, int maxLength)' to >>>> org.bodington.util.TextUtils and use that whenever there's a limited >>>> space for displaying text? Could always use title attribute in link >>>> to >>>> display full text. As I said we've also removed search and links >>>> from >>>> the navigation div so we have more space to play with. >>>> >>> If we are going to truncate peoples titles we should decide where we >>> normally truncate and tell people so that they can try and have >>> shorter >>> titles so they are aware where it would be truncated. >>> >>> 30 characters? >>> >>> Even in our default install we have titles of 50+ characters ( User >>> Administration for System Administration zone. ). >>> >>> I don't think actually limiting people to only 30 characters is >>> sensible. >>> >>> -- >>> -- Matthew Buckett, VLE Developer >>> -- Learning Technologies Group, Oxford University Computing >>> Services >>> -- Tel: +44 (0)1865 283660 http://www.oucs.ox.ac.uk/ltg/ >>> >>> All the advantages of Linux Managed Hosting--Without the Cost and >>> Risk! >>> Fully trained technicians. The highest number of Red Hat >>> certifications in >>> the hosting industry. Fanatical Support. Click to learn more >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=107521&bid=248729&dat=121642 >>> _______________________________________________ >>> Bodington-developers mailing list >>> Bod...@li... >>> https://lists.sourceforge.net/lists/listinfo/bodington-developers >>> >> >> >> All the advantages of Linux Managed Hosting--Without the Cost and >> Risk! >> Fully trained technicians. The highest number of Red Hat >> certifications in >> the hosting industry. Fanatical Support. Click to learn more >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=107521&bid=248729&dat=121642 >> _______________________________________________ >> Bodington-developers mailing list >> Bod...@li... >> https://lists.sourceforge.net/lists/listinfo/bodington-developers >> >> > > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat > certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |