> Take a look at http://cadfael.tiddlyspot.com/for a test case.
The error is in the plugin-based CSS definition itself. In
[[StyleSheet]], you have this rule:
.ippThumbSize img
{max-height: 60px; border: 1px solid gray; padding: 2px; margin:
1px;}
but the CSS set by ImagePopupPlugin defines:
.ippDefaultThumbSize
{ max-height: 60px; border: 1px solid gray; padding: 2px; margin:
1px; }
Notice that "img" is missing from the second one... e.g., it should
read:
".ippDefaultThumbSize img { ... }"
That should fix it...
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
"ippThumbSize";
>
> ie to apply the class defined in the StyleSheet does work.
>
> Thanks
> Steve Wharton
>
> On Feb 20, 5:24 pm, FND <[email protected]> wrote:
>
> > At first glance, your code seems alright to me[1] - can you provide a
> > test case[2] so we can analyze it?
>
> > > Where does the call setStylesheet go relative to the plugin
> > > and how do I reference the style within the plugin?
>
> > I'm not sure I understand the issue here.
> > Since setStylesheet merely adds CSS definitions, that's largely
> > independent of any JavaScript code - you just have to make sure that
> > your elements match the respective selectors (e.g. by adding a class).
>
> > -- F.
>
> > [1] cf.http://www.tiddlywiki.org/wiki/Dev:Plugin_Styles
> > [2]http://www.tiddlywiki.org/wiki/Troubleshooting
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---