> {{customInput{<<option txtUserName>>}}}
> .customInput input { width: 10em; }
Fantastic FND, your suggestion works great on the txtUserName box.
This is very useful because I would like to have the username+password
boxes inside the main menu horizontally at the top, where space is
valuable.
Applying the trick to pasUploadPassword did not produce good results
though, because pasUploadPassword is a combination of 3 objects: the
password box, the tick box, and the side text "save password to
computer". When applying your tweak, the box can indeed be shrunk, but
the tick box and side text remain where they were, so that instead of
shrinking the overall object the tweak creates an unnecessary empty
space between the password box and tick box.
I had a look at the UploadPlugin where most of this seems to be
defined, but did not make much progress. It looked to me (but I could
be wrong) that something called pasOptionInput was controlling the
overall size. So I randomly tried things like :
.config.macros.pasOptionInput { width: 5em; }
.config.options.macros.pasOptionInput { width: 5em; }
.config.macros.options.pasOptionInput { width: 5em; }
.config.macros.option.pasOptionInput { width: 5em; }
but, you guessed it, without success.
To an expert eye the following may provide a useful hint. UploadPlugin
contains the following line:
setStylesheet(".pasOptionInput {width: 11em;}
\n","passwordInputTypeStyle");
As as second-best option, I'd settle for having a shrunk password box
without the tick and side text -- but I still haven't figured out the
name of that stripped-down password box.
Thanks again FND for your great support,
Patrick.
P.S. The following lines of code from UploadPlugin may provide useful
hints too. I think what it is is the process of constructing the
password-tick-sidetext object:
merge(config.macros.option.types, {
'pas': {
elementType: "input",
valueField: "value",
eventName: "onkeyup",
className: "pasOptionInput",
typeValue: config.macros.option.passwordInputType,
create: function(place,type,opt,className,desc) {
// password field
config.macros.option.genericCreate(place,'pas',opt,className,desc);
// checkbox linked with this password "save this
password on this
computer"
config.macros.option.genericCreate
(place,'chk','chk'+opt,className,desc);
// text savePasswordCheckboxLabel
place.appendChild(document.createTextNode
(config.macros.option.passwordCheckboxLabel));
},
onChange: config.macros.option.genericOnChange
}
});
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---