Closed (fixed)
Project:
Text Size
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2010 at 15:25 UTC
Updated:
4 Jun 2010 at 17:20 UTC
It may just be me, but I think it's a bit odd to have a decrease text size button. I am guessing most people are using this module for accessibility purposes, to help users with sight problems easily enlarge the text. I can't really imagine there being that many scenario's where you'd want to decrease the default text size.
It would be quite nice to set the decrease text-size as the default, and then using fixed increases set normal and increase to both enlarge the text size to a specific level. Or something similar to this to the same effect (maybe there's a simple solution).
Thanks
Comments
Comment #1
CZ commentedhi leon.nk
This is possible by editing the Text Size templates in your theme, and delete the link "Decrease", see Help under "Theming".
But i can do it in the configuration page like admin/settings/textsize#edit-textsize-display-normal. But i think default off is not so good.
Comment #2
leon kessler commentedHi Christian,
Thanks for the help.
What I really wanted was three fixed sizes, with the default being the lowest. Just like on direct.gov.uk
I ended up creating an extra increase button (which I called ts_largest). This would increase the text size by textsizeIncrement * 2.
This works fine, but for some reason the text sizes aren't saved when going to a new page. I checked the cookie, and it's getting set. Christian, can you tell me which function handles the resizing of text from the cookie/session? As I can't find it right now.
Thanks
Comment #3
CZ commentedHi leon.nk
Easy, check the box "admin/settings/textsize#edit-textsize-link-type-fix" and save the settings. That's it!
Comment #4
leon kessler commentedHi Christian,
What you said would not make the decrease text size the default and minimum. I had to create the extra "double-increase" button and remove the decrease button (so just having normal, increase, and double-increase).
However, I am still having problems with text-sizes not being set from the cookie, it must have been something I changed when I created the new button. I can't see where in jquery.textsize.js the cookie is read and the text size is set on page load. Can you give me any help on this one?
Thanks a lot.
EDIT:
Don't worry found it, in testsize.module textsize_print_html()
Comment #5
CZ commentedFor "double-increase" enter in "admin/settings/textsize#edit-textsize-increment" the double value (for example 10%), check the box "admin/settings/textsize#edit-textsize-reset" and copy the templates to your theme and remove the decrease code.
I can integrate a settings box in the configuration page for removing the decrease link.
A increase and double-increase link is possible with a big hack.
Comment #6
CZ commentedThank you Leon. Fixed.